summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/gateway_parameters/_form.html.haml7
-rw-r--r--app/views/gateway_parameters/_form_core.html.haml6
-rw-r--r--app/views/gateway_parameters/_index_core.html.haml17
-rw-r--r--app/views/gateway_parameters/edit.html.haml3
-rw-r--r--app/views/gateway_parameters/index.html.haml6
-rw-r--r--app/views/gateway_parameters/new.html.haml3
-rw-r--r--app/views/gateway_parameters/show.html.haml19
7 files changed, 61 insertions, 0 deletions
diff --git a/app/views/gateway_parameters/_form.html.haml b/app/views/gateway_parameters/_form.html.haml
new file mode 100644
index 0000000..490f2a6
--- /dev/null
+++ b/app/views/gateway_parameters/_form.html.haml
@@ -0,0 +1,7 @@
+= simple_form_for(@gateway_parameter) do |f|
+ = f.error_notification
+
+ = render "form_core", :f => f
+
+ .actions
+ = f.button :submit, conditional_t('gateway_parameters.form.submit') \ No newline at end of file
diff --git a/app/views/gateway_parameters/_form_core.html.haml b/app/views/gateway_parameters/_form_core.html.haml
new file mode 100644
index 0000000..026e833
--- /dev/null
+++ b/app/views/gateway_parameters/_form_core.html.haml
@@ -0,0 +1,6 @@
+.inputs
+ = f.input :gateway_id, :label => t('gateway_parameters.form.gateway_id.label'), :hint => conditional_hint('gateway_parameters.form.gateway_id.hint')
+ = f.input :name, :label => t('gateway_parameters.form.name.label'), :hint => conditional_hint('gateway_parameters.form.name.hint')
+ = f.input :value, :label => t('gateway_parameters.form.value.label'), :hint => conditional_hint('gateway_parameters.form.value.hint')
+ = f.input :class_type, :label => t('gateway_parameters.form.class_type.label'), :hint => conditional_hint('gateway_parameters.form.class_type.hint')
+ = f.input :description, :label => t('gateway_parameters.form.description.label'), :hint => conditional_hint('gateway_parameters.form.description.hint')
diff --git a/app/views/gateway_parameters/_index_core.html.haml b/app/views/gateway_parameters/_index_core.html.haml
new file mode 100644
index 0000000..6209f43
--- /dev/null
+++ b/app/views/gateway_parameters/_index_core.html.haml
@@ -0,0 +1,17 @@
+%table
+ %tr
+ %th= t('gateway_parameters.index.gateway_id')
+ %th= t('gateway_parameters.index.name')
+ %th= t('gateway_parameters.index.value')
+ %th= t('gateway_parameters.index.class_type')
+ %th= t('gateway_parameters.index.description')
+
+ - reset_cycle
+ - for gateway_parameter in gateway_parameters
+ %tr{:class => cycle('odd', 'even')}
+ %td= gateway_parameter.gateway_id
+ %td= gateway_parameter.name
+ %td= gateway_parameter.value
+ %td= gateway_parameter.class_type
+ %td= gateway_parameter.description
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => gateway_parameter} \ No newline at end of file
diff --git a/app/views/gateway_parameters/edit.html.haml b/app/views/gateway_parameters/edit.html.haml
new file mode 100644
index 0000000..86fe979
--- /dev/null
+++ b/app/views/gateway_parameters/edit.html.haml
@@ -0,0 +1,3 @@
+- title t("gateway_parameters.edit.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_parameters/index.html.haml b/app/views/gateway_parameters/index.html.haml
new file mode 100644
index 0000000..1234cff
--- /dev/null
+++ b/app/views/gateway_parameters/index.html.haml
@@ -0,0 +1,6 @@
+- title t("gateway_parameters.index.page_title")
+
+- if @gateway_parameters && @gateway_parameters.count > 0
+ = render "index_core", :gateway_parameters => @gateway_parameters
+
+= render :partial => 'shared/create_link', :locals => {:child_class => GatewayParameter} \ No newline at end of file
diff --git a/app/views/gateway_parameters/new.html.haml b/app/views/gateway_parameters/new.html.haml
new file mode 100644
index 0000000..5844088
--- /dev/null
+++ b/app/views/gateway_parameters/new.html.haml
@@ -0,0 +1,3 @@
+- title t("gateway_parameters.new.page_title")
+
+= render "form" \ No newline at end of file
diff --git a/app/views/gateway_parameters/show.html.haml b/app/views/gateway_parameters/show.html.haml
new file mode 100644
index 0000000..87ba10d
--- /dev/null
+++ b/app/views/gateway_parameters/show.html.haml
@@ -0,0 +1,19 @@
+- title t("gateway_parameters.show.page_title")
+
+%p
+ %strong= t('gateway_parameters.show.gateway_id') + ":"
+ = @gateway_parameter.gateway_id
+%p
+ %strong= t('gateway_parameters.show.name') + ":"
+ = @gateway_parameter.name
+%p
+ %strong= t('gateway_parameters.show.value') + ":"
+ = @gateway_parameter.value
+%p
+ %strong= t('gateway_parameters.show.class_type') + ":"
+ = @gateway_parameter.class_type
+%p
+ %strong= t('gateway_parameters.show.description') + ":"
+ = @gateway_parameter.description
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway_parameter } \ No newline at end of file