summaryrefslogtreecommitdiff
path: root/app/views/route_elements/_index_core.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-12 13:27:08 +0100
commit421249fc702fa76fe68530a1ab8bdde910814c6f (patch)
treeaa6ed467ba56ea74b0061af4d06cfb9b853da489 /app/views/route_elements/_index_core.html.haml
parentaa5a2b806d117ffde9888e282c7100066156d94b (diff)
parentf8f35f666613eff24d3988bda1a22cc40ef2ab30 (diff)
Merge branch 'call_routes' into develop
Diffstat (limited to 'app/views/route_elements/_index_core.html.haml')
-rw-r--r--app/views/route_elements/_index_core.html.haml12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/route_elements/_index_core.html.haml b/app/views/route_elements/_index_core.html.haml
index f68a9ba..a88602f 100644
--- a/app/views/route_elements/_index_core.html.haml
+++ b/app/views/route_elements/_index_core.html.haml
@@ -1,7 +1,8 @@
%table.table.table-striped
%thead
%tr
- %th
+ - if route_elements.count > 1
+ %th
%th= t('route_elements.index.var_in')
%th= t('route_elements.index.var_out')
%th= t('route_elements.index.pattern')
@@ -9,10 +10,13 @@
%th= t('route_elements.index.action')
%th= t('route_elements.index.mandatory')
- %tbody
+ %tbody{ :id => "route_elements", :'data-update-url' => sort_call_route_route_elements_url(route_elements.first.call_route)}
- for route_element in route_elements
- %tr
- %td= route_element.position
+ = content_tag_for :tr, route_element do
+ - if route_elements.count > 1
+ %td
+ %span.handle
+ %i.icon-resize-vertical
%td= route_element.var_in
%td= route_element.var_out
%td= route_element.pattern