From 7cfddc9022d0b283ee278eea3be88c80089c0207 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Sun, 13 Jan 2013 16:37:22 +0000 Subject: gateway_parameters views --- app/views/gateway_parameters/_form.html.haml | 7 +++++++ app/views/gateway_parameters/_form_core.html.haml | 6 ++++++ app/views/gateway_parameters/_index_core.html.haml | 17 +++++++++++++++++ app/views/gateway_parameters/edit.html.haml | 3 +++ app/views/gateway_parameters/index.html.haml | 6 ++++++ app/views/gateway_parameters/new.html.haml | 3 +++ app/views/gateway_parameters/show.html.haml | 19 +++++++++++++++++++ 7 files changed, 61 insertions(+) create mode 100644 app/views/gateway_parameters/_form.html.haml create mode 100644 app/views/gateway_parameters/_form_core.html.haml create mode 100644 app/views/gateway_parameters/_index_core.html.haml create mode 100644 app/views/gateway_parameters/edit.html.haml create mode 100644 app/views/gateway_parameters/index.html.haml create mode 100644 app/views/gateway_parameters/new.html.haml create mode 100644 app/views/gateway_parameters/show.html.haml (limited to 'app/views/gateway_parameters') 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 -- cgit v1.2.3 From 57097d16d2a7e86f9e03625fd2fb6796504c32a2 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sun, 13 Jan 2013 22:26:28 +0100 Subject: Bugfixes for gateway stuff. --- app/views/gateway_parameters/_form.html.haml | 2 +- app/views/gateway_parameters/_form_core.html.haml | 3 +-- app/views/gateway_parameters/_index_core.html.haml | 4 ++-- app/views/gateway_parameters/index.html.haml | 2 +- app/views/gateway_parameters/show.html.haml | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) (limited to 'app/views/gateway_parameters') 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 -- cgit v1.2.3 From d0d9b60686a3cc044dc53b626403f799b3d4f703 Mon Sep 17 00:00:00 2001 From: spag Date: Mon, 14 Jan 2013 00:13:17 +0100 Subject: gateway_parameter views --- app/views/gateway_parameters/_form_core.html.haml | 2 +- app/views/gateway_parameters/_index_core.html.haml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'app/views/gateway_parameters') 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} -- cgit v1.2.3 From 18ed88c7e3c789366f6e5443dc4ee0bc981a4b88 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 21 Jan 2013 20:18:16 +0100 Subject: Started the migration to Twitter Bootstrap. --- app/views/gateway_parameters/_index_core.html.haml | 2 +- app/views/gateway_parameters/edit.html.haml | 2 +- app/views/gateway_parameters/index.html.haml | 2 +- app/views/gateway_parameters/new.html.haml | 2 +- app/views/gateway_parameters/show.html.haml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app/views/gateway_parameters') diff --git a/app/views/gateway_parameters/_index_core.html.haml b/app/views/gateway_parameters/_index_core.html.haml index c22093d..fda01b3 100644 --- a/app/views/gateway_parameters/_index_core.html.haml +++ b/app/views/gateway_parameters/_index_core.html.haml @@ -1,4 +1,4 @@ -%table +%table{:class => 'table table-striped'} %tr %th= t('gateway_parameters.index.name') %th= t('gateway_parameters.index.value') diff --git a/app/views/gateway_parameters/edit.html.haml b/app/views/gateway_parameters/edit.html.haml index 86fe979..67fb831 100644 --- a/app/views/gateway_parameters/edit.html.haml +++ b/app/views/gateway_parameters/edit.html.haml @@ -1,3 +1,3 @@ -- title t("gateway_parameters.edit.page_title") +- content_for :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 index 14b94b0..9eee4a3 100644 --- a/app/views/gateway_parameters/index.html.haml +++ b/app/views/gateway_parameters/index.html.haml @@ -1,4 +1,4 @@ -- title t("gateway_parameters.index.page_title") +- content_for :title, t("gateway_parameters.index.page_title") - if @gateway_parameters && @gateway_parameters.count > 0 = render "index_core", :gateway_parameters => @gateway_parameters diff --git a/app/views/gateway_parameters/new.html.haml b/app/views/gateway_parameters/new.html.haml index 5844088..5899602 100644 --- a/app/views/gateway_parameters/new.html.haml +++ b/app/views/gateway_parameters/new.html.haml @@ -1,3 +1,3 @@ -- title t("gateway_parameters.new.page_title") +- content_for :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 index 982ffac..9bdad76 100644 --- a/app/views/gateway_parameters/show.html.haml +++ b/app/views/gateway_parameters/show.html.haml @@ -1,4 +1,4 @@ -- title t("gateway_parameters.show.page_title") +- content_for :title, t("gateway_parameters.show.page_title") %p %strong= t('gateway_parameters.show.gateway_id') + ":" -- cgit v1.2.3 From d8fe3b636cab1504cb5d3cb5dc57ed818749ccf5 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 21 Jan 2013 21:30:48 +0100 Subject: Twitter Bootstrap stuff. --- app/views/gateway_parameters/_index_core.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/gateway_parameters') diff --git a/app/views/gateway_parameters/_index_core.html.haml b/app/views/gateway_parameters/_index_core.html.haml index fda01b3..0d00aaf 100644 --- a/app/views/gateway_parameters/_index_core.html.haml +++ b/app/views/gateway_parameters/_index_core.html.haml @@ -4,9 +4,9 @@ %th= t('gateway_parameters.index.value') %th= t('gateway_parameters.index.description') - - reset_cycle + - for gateway_parameter in gateway_parameters - %tr{:class => cycle('odd', 'even')} + %tr %td= gateway_parameter.name %td= gateway_parameter.value %td= gateway_parameter.description -- cgit v1.2.3