aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/group_of_lines/index.html.slim
blob: 28f3ab26408f2afc62c00f39dfe242e9257706e5 (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
- breadcrumb :group_of_lines, @line_referential
= title_tag t('group_of_lines.index.title')

= search_form_for @q, :url => line_referential_group_of_lines_path(@line_referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f|
  .panel.panel-default
    .panel-heading
      .input-group.col-md-12
        = f.text_field :name_cont, :placeholder => "#{t('.name')}", class: 'form-control'
        .input-group-btn
          button.btn.btn-default#search-btn type="submit"
          i.fa.fa-search

      / <!-- /input-group -->
      / <!-- <a data-toggle="collapse" data-parent="#search" href="#advanced_search"> -->
      / <!--   <i class="fa fa-plus"></i> <%= "#{t('.advanced_search')}" %> -->
      / <!-- </a> -->

#group_of_lines
  = render 'group_of_lines'

- content_for :sidebar do
  ul.actions
    - if policy(Chouette::GroupOfLine).create?
      li
        = link_to t('group_of_lines.actions.new'), new_line_referential_group_of_line_path(@line_referential), class: 'add'
      br