summaryrefslogtreecommitdiff
path: root/app/views/route_elements/_index_core.html.haml
blob: a88602fcea481371f72f7a3d52e0c2631bffd02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%table.table.table-striped
  %thead
    %tr
      - 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')
      %th= t('route_elements.index.replacement')
      %th= t('route_elements.index.action')
      %th= t('route_elements.index.mandatory')

  %tbody{ :id => "route_elements", :'data-update-url' => sort_call_route_route_elements_url(route_elements.first.call_route)}
    - for route_element in route_elements
      = 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
        %td= route_element.replacement
        %td= route_element.action
        %td= route_element.mandatory
        =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => @call_route, :child => route_element}