diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-13 22:26:28 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-13 22:26:28 +0100 |
commit | 57097d16d2a7e86f9e03625fd2fb6796504c32a2 (patch) | |
tree | 2b04ae7c415660c49525f785a9449579a34a4a13 /app/views/gateway_parameters | |
parent | bfacc7b5de2f3a5a9d09a16683a9ba1fcf184d98 (diff) |
Bugfixes for gateway stuff.
Diffstat (limited to 'app/views/gateway_parameters')
-rw-r--r-- | app/views/gateway_parameters/_form.html.haml | 2 | ||||
-rw-r--r-- | app/views/gateway_parameters/_form_core.html.haml | 3 | ||||
-rw-r--r-- | app/views/gateway_parameters/_index_core.html.haml | 4 | ||||
-rw-r--r-- | app/views/gateway_parameters/index.html.haml | 2 | ||||
-rw-r--r-- | app/views/gateway_parameters/show.html.haml | 4 |
5 files changed, 7 insertions, 8 deletions
diff --git a/app/views/gateway_parameters/_form.html.haml b/app/views/gateway_parameters/_form.html.haml index 490f2a6..79342d2 100644 --- a/app/views/gateway_parameters/_form.html.haml +++ b/app/views/gateway_parameters/_form.html.haml @@ -1,4 +1,4 @@ -= simple_form_for(@gateway_parameter) do |f| += simple_form_for([@gateway, @gateway_parameter]) do |f| = f.error_notification = render "form_core", :f => f diff --git a/app/views/gateway_parameters/_form_core.html.haml b/app/views/gateway_parameters/_form_core.html.haml index 026e833..ee30238 100644 --- a/app/views/gateway_parameters/_form_core.html.haml +++ b/app/views/gateway_parameters/_form_core.html.haml @@ -1,6 +1,5 @@ .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 :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 :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 6209f43..3d4b6df 100644 --- a/app/views/gateway_parameters/_index_core.html.haml +++ b/app/views/gateway_parameters/_index_core.html.haml @@ -9,9 +9,9 @@ - reset_cycle - for gateway_parameter in gateway_parameters %tr{:class => cycle('odd', 'even')} - %td= gateway_parameter.gateway_id + %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 => {: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}
\ No newline at end of file diff --git a/app/views/gateway_parameters/index.html.haml b/app/views/gateway_parameters/index.html.haml index 1234cff..14b94b0 100644 --- a/app/views/gateway_parameters/index.html.haml +++ b/app/views/gateway_parameters/index.html.haml @@ -3,4 +3,4 @@ - 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 += render :partial => 'shared/create_link', :locals => {:parent => @gateway, :child_class => GatewayParameter}
\ No newline at end of file diff --git a/app/views/gateway_parameters/show.html.haml b/app/views/gateway_parameters/show.html.haml index 87ba10d..982ffac 100644 --- a/app/views/gateway_parameters/show.html.haml +++ b/app/views/gateway_parameters/show.html.haml @@ -2,7 +2,7 @@ %p %strong= t('gateway_parameters.show.gateway_id') + ":" - = @gateway_parameter.gateway_id + = @gateway_parameter.gateway %p %strong= t('gateway_parameters.show.name') + ":" = @gateway_parameter.name @@ -16,4 +16,4 @@ %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 += render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @gateway, :child => @gateway_parameter }
\ No newline at end of file |