From f46bfd1618f85842913dd967133f111ec2628fef Mon Sep 17 00:00:00 2001 From: spag Date: Fri, 1 Feb 2013 09:13:30 +0100 Subject: position added --- app/views/route_elements/_form_core.html.haml | 1 + app/views/route_elements/_index_core.html.haml | 2 ++ app/views/route_elements/show.html.haml | 3 +++ 3 files changed, 6 insertions(+) (limited to 'app') diff --git a/app/views/route_elements/_form_core.html.haml b/app/views/route_elements/_form_core.html.haml index a9a38a7..d22467e 100644 --- a/app/views/route_elements/_form_core.html.haml +++ b/app/views/route_elements/_form_core.html.haml @@ -4,4 +4,5 @@ = f.input :pattern, :label => t('route_elements.form.pattern.label'), :hint => conditional_hint('route_elements.form.pattern.hint') = f.input :replacement, :label => t('route_elements.form.replacement.label'), :hint => conditional_hint('route_elements.form.replacement.hint') = f.input :action, :collection => RouteElement::ELEMENT_ACTIONS, :label => t('route_elements.form.action.label'), :hint => conditional_hint('route_elements.form.action.hint'), :include_blank => false + = f.input :position, :label => t('route_elements.form.position.label'), :hint => conditional_hint('route_elements.form.position.hint') = f.input :mandatory, :label => t('route_elements.form.mandatory.label'), :hint => conditional_hint('route_elements.form.mandatory.hint') diff --git a/app/views/route_elements/_index_core.html.haml b/app/views/route_elements/_index_core.html.haml index 37c0656..f68a9ba 100644 --- a/app/views/route_elements/_index_core.html.haml +++ b/app/views/route_elements/_index_core.html.haml @@ -1,6 +1,7 @@ %table.table.table-striped %thead %tr + %th %th= t('route_elements.index.var_in') %th= t('route_elements.index.var_out') %th= t('route_elements.index.pattern') @@ -11,6 +12,7 @@ %tbody - for route_element in route_elements %tr + %td= route_element.position %td= route_element.var_in %td= route_element.var_out %td= route_element.pattern diff --git a/app/views/route_elements/show.html.haml b/app/views/route_elements/show.html.haml index 808f2a0..1d07cbc 100644 --- a/app/views/route_elements/show.html.haml +++ b/app/views/route_elements/show.html.haml @@ -1,5 +1,8 @@ - content_for :title, t("route_elements.show.page_title") +%p + %strong= t('route_elements.show.position') + ":" + = @route_element.position %p %strong= t('route_elements.show.var_in') + ":" = @route_element.var_in -- cgit v1.2.3