summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-01 09:13:30 +0100
committerspag <spag@golwen.net>2013-02-01 09:13:30 +0100
commitf46bfd1618f85842913dd967133f111ec2628fef (patch)
treecab9d3c32bb236770eafa10bf609db54d311973c /app
parentd355193428c9e74180f1b278f88c7b56f3cd6bda (diff)
position added
Diffstat (limited to 'app')
-rw-r--r--app/views/route_elements/_form_core.html.haml1
-rw-r--r--app/views/route_elements/_index_core.html.haml2
-rw-r--r--app/views/route_elements/show.html.haml3
3 files changed, 6 insertions, 0 deletions
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,6 +1,9 @@
- 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
%p