aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/connection_links/index.html.slim
blob: 7651ae3404ea7ab3bdad8535e185529d16eec8d2 (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
= title_tag t('connection_links.index.title')

= search_form_for @q, :url => referential_connection_links_path(@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 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> -->

#connection_links
  = render 'connection_links'

- content_for :sidebar do
  ul.actions
    li
      - if policy(Chouette::ConnectionLink).create? && @referential.organisation == current_organisation
        = link_to t('connection_links.actions.new'), new_referential_connection_link_path(@referential), class: 'add'