summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-14 00:13:17 +0100
committerspag <spag@golwen.net>2013-01-14 00:13:17 +0100
commitd0d9b60686a3cc044dc53b626403f799b3d4f703 (patch)
tree43f58b313435cb1b7738bcd9efe7cf46103b394b /app/views
parent7aac2daa0010293fc27e96f4f767d82ab88abea6 (diff)
gateway_parameter views
Diffstat (limited to 'app/views')
-rw-r--r--app/views/gateway_parameters/_form_core.html.haml2
-rw-r--r--app/views/gateway_parameters/_index_core.html.haml6
2 files changed, 2 insertions, 6 deletions
diff --git a/app/views/gateway_parameters/_form_core.html.haml b/app/views/gateway_parameters/_form_core.html.haml
index ee30238..206645d 100644
--- a/app/views/gateway_parameters/_form_core.html.haml
+++ b/app/views/gateway_parameters/_form_core.html.haml
@@ -1,5 +1,5 @@
.inputs
= f.input :name, :label => t('gateway_parameters.form.name.label'), :hint => conditional_hint('gateway_parameters.form.name.hint'), :autofocus => true
= 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 :class_type, :collection => GatewayParameter::CLASS_TYPES, :label => t('gateway_parameters.form.class_type.label'), :hint => conditional_hint('gateway_parameters.form.class_type.hint'), :include_blank => false
= 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
index 3d4b6df..c22093d 100644
--- a/app/views/gateway_parameters/_index_core.html.haml
+++ b/app/views/gateway_parameters/_index_core.html.haml
@@ -1,17 +1,13 @@
%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
%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 => {:parent => gateway_parameter.gateway, :child => gateway_parameter} \ No newline at end of file
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => gateway_parameter.gateway, :child => gateway_parameter}