summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/gateway_settings/_form.html.haml7
-rw-r--r--app/views/gateway_settings/_form_core.html.haml5
-rw-r--r--app/views/gateway_settings/_index_core.html.haml17
-rw-r--r--app/views/gateway_settings/edit.html.haml3
-rw-r--r--app/views/gateway_settings/index.html.haml6
-rw-r--r--app/views/gateway_settings/new.html.haml3
-rw-r--r--app/views/gateway_settings/show.html.haml19
7 files changed, 60 insertions, 0 deletions
diff --git a/app/views/gateway_settings/_form.html.haml b/app/views/gateway_settings/_form.html.haml
new file mode 100644
index 0000000..af26d2a
--- /dev/null
+++ b/app/views/gateway_settings/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for([@gateway, @gateway_setting]) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('gateway_settings.form.submit')
diff --git a/app/views/gateway_settings/_form_core.html.haml b/app/views/gateway_settings/_form_core.html.haml
new file mode 100644
index 0000000..3880113
--- /dev/null
+++ b/app/views/gateway_settings/_form_core.html.haml
@@ -0,0 +1,5 @@
+.inputs
+ = f.input :name, :label => t('gateway_settings.form.name.label'), :hint => conditional_hint('gateway_settings.form.name.hint')
+ = f.input :value, :label => t('gateway_settings.form.value.label'), :hint => conditional_hint('gateway_settings.form.value.hint')
+ = f.input :class_type, :label => t('gateway_settings.form.class_type.label'), :hint => conditional_hint('gateway_settings.form.class_type.hint')
+ = f.input :description, :label => t('gateway_settings.form.description.label'), :hint => conditional_hint('gateway_settings.form.description.hint')
diff --git a/app/views/gateway_settings/_index_core.html.haml b/app/views/gateway_settings/_index_core.html.haml
new file mode 100644
index 0000000..1b8e443
--- /dev/null
+++ b/app/views/gateway_settings/_index_core.html.haml
@@ -0,0 +1,17 @@
+%table
+ %tr
+ %th= t('gateway_settings.index.gateway_id')
+ %th= t('gateway_settings.index.name')
+ %th= t('gateway_settings.index.value')
+ %th= t('gateway_settings.index.class_type')
+ %th= t('gateway_settings.index.description')
+
+ - reset_cycle
+ - for gateway_setting in gateway_settings
+ %tr{:class => cycle('odd', 'even')}
+ %td= gateway_setting.gateway_id
+ %td= gateway_setting.name
+ %td= gateway_setting.value
+ %td= gateway_setting.class_type
+ %td= gateway_setting.description
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => gateway_setting} \ No newline at end of file
diff --git a/app/views/gateway_settings/edit.html.haml b/app/views/gateway_settings/edit.html.haml
new file mode 100644
index 0000000..b374f42
--- /dev/null
+++ b/app/views/gateway_settings/edit.html.haml
@@ -0,0 +1,3 @@
+- title t("gateway_settings.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/index.html.haml b/app/views/gateway_settings/index.html.haml
new file mode 100644
index 0000000..b85ef0a
--- /dev/null
+++ b/app/views/gateway_settings/index.html.haml
@@ -0,0 +1,6 @@
+- title t("gateway_settings.index.page_title")
+
+- if @gateway_settings && @gateway_settings.count > 0
+ = render "index_core", :gateway_settings => @gateway_settings
+
+= render :partial => 'shared/create_link', :locals => {:parent => @gateway, :child_class => GatewaySetting}
diff --git a/app/views/gateway_settings/new.html.haml b/app/views/gateway_settings/new.html.haml
new file mode 100644
index 0000000..5399dc3
--- /dev/null
+++ b/app/views/gateway_settings/new.html.haml
@@ -0,0 +1,3 @@
+- title t("gateway_settings.new.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/show.html.haml b/app/views/gateway_settings/show.html.haml
new file mode 100644
index 0000000..4f38e0b
--- /dev/null
+++ b/app/views/gateway_settings/show.html.haml
@@ -0,0 +1,19 @@
+- title t("gateway_settings.show.page_title")
+
+%p
+ %strong= t('gateway_settings.show.gateway_id') + ":"
+ = @gateway_setting.gateway_id
+%p
+ %strong= t('gateway_settings.show.name') + ":"
+ = @gateway_setting.name
+%p
+ %strong= t('gateway_settings.show.value') + ":"
+ = @gateway_setting.value
+%p
+ %strong= t('gateway_settings.show.class_type') + ":"
+ = @gateway_setting.class_type
+%p
+ %strong= t('gateway_settings.show.description') + ":"
+ = @gateway_setting.description
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway_setting } \ No newline at end of file