diff options
| author | Xinhui | 2016-10-19 10:48:49 +0200 |
|---|---|---|
| committer | Xinhui | 2016-10-19 10:48:49 +0200 |
| commit | df75d5a41d71b06a12285153b7fb6616e575341b (patch) | |
| tree | ea435f3ef93e4f14c3ad87057cd472cdebb8f023 | |
| parent | f9814e27bcaabbf69c66f43989236e40a334e0c1 (diff) | |
| download | chouette-core-df75d5a41d71b06a12285153b7fb6616e575341b.tar.bz2 | |
Line#index remove multiple select
Refs #1846
| -rw-r--r-- | app/views/lines/index.html.slim | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim index bf83486eb..92c04a193 100644 --- a/app/views/lines/index.html.slim +++ b/app/views/lines/index.html.slim @@ -4,7 +4,7 @@ .well.well-sm .input-group = f.text_field :name_or_number_or_objectid_cont, placeholder: t('.name_or_number_or_objectid'), class: 'form-control' - + .input-group-btn button.btn.btn-primary type="submit" span.fa.fa-search @@ -20,7 +20,7 @@ = f.select(:company_id_eq, @line_referential.companies.collect {|c| [ c.name, c.id ] }.unshift([t('.no_companies'), -1]), {include_blank: t('.all_companies')}, {class: 'form-control'}) .col-md-4.col-sm-4 = f.select(:group_of_lines_id_eq, @line_referential.group_of_lines.collect {|c| [ c.name, c.id ] }.unshift([t('.no_group_of_lines'), -1]), {include_blank: t('.all_group_of_lines')}, {class: 'form-control'}) - + .col-md-2.col-sm-3 button.btn.btn-primary.btn-block type="submit" Filtrer @@ -33,22 +33,23 @@ li = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add' - #multiple_selection_menu - h4 = t('.multi_selection') + - if policy(Chouette::Line).destroy? + #multiple_selection_menu + h4 = t('.multi_selection') - .disabled - a.enable href="#" - = t('.multi_selection_enable') + .disabled + a.enable href="#" + = t('.multi_selection_enable') - .enabled style="display: none;" - a.disable href="#" - = t('.multi_selection_disable') + .enabled style="display: none;" + a.disable href="#" + = t('.multi_selection_disable') - ul.actions - = link_to t('.delete_selected'), line_referential_lines_path(@line_referential), "data-multiple-method" => "delete", class: 'remove', "confirmation-text" => t("lines.actions.destroy_selection_confirm") + ul.actions + = link_to t('.delete_selected'), line_referential_lines_path(@line_referential), "data-multiple-method" => "delete", class: 'remove', "confirmation-text" => t("lines.actions.destroy_selection_confirm") - a.select_all href="#" - = t('.select_all') - = " | " - a.deselect_all href="#" - = t('.deselect_all') + a.select_all href="#" + = t('.select_all') + = " | " + a.deselect_all href="#" + = t('.deselect_all') |
