Select all p_customer_sheets export
This commit is contained in:
parent
bb6e89d7f1
commit
5a979f96dc
@ -40,7 +40,7 @@ class PCustomerSheet < ApplicationRecord
|
||||
:tot_amount_ht => {:name => "Total HT", :reorder => true, :sort_name => "cc_tot_amount_ht", :sort_name => "p_customer_sheets.cc_tot_amount_ht"},
|
||||
:tot_amount_ttc => {:name => "Total TTC", :reorder => true, :sort_name => "cc_tot_amount_ttc", :sort_name => "p_customer_sheets.cc_tot_amount_ttc"},
|
||||
:state => {:name => "Statut", :reorder => false, :as => :state},
|
||||
:check_box => {:name => "Export excel", :reorder => false},
|
||||
:check_box => {:name => "Export excel #{'<i id="check-all" class="fa fa-check-square" aria-hidden="true"></i>'}", :reorder => false},
|
||||
:actions => {:name => "Actions", :reorder => false},
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@
|
||||
Attention !
|
||||
%br
|
||||
%br
|
||||
Selection de plusieurs clients détécté
|
||||
Selection de plusieurs clients détéctée
|
||||
%br
|
||||
Vous avez selectionné des commandes liées à différents clients.
|
||||
%br
|
||||
@ -213,6 +213,17 @@
|
||||
Confirmer
|
||||
|
||||
:javascript
|
||||
$("#check-all").parent().on("click", function(event) {
|
||||
console.log(event.currentTarget)
|
||||
event.currentTarget.classList.toggle("checked")
|
||||
if(event.currentTarget.classList.contains("checked")){
|
||||
$('.table input[type=checkbox]').prop("checked", true)
|
||||
}else{
|
||||
$('.table input[type=checkbox]').prop("checked", false)
|
||||
}
|
||||
})
|
||||
|
||||
"#dataTable tbody tr"
|
||||
function submitExport() {
|
||||
$('#export-form').submit()
|
||||
}
|
||||
@ -235,4 +246,9 @@
|
||||
}
|
||||
|
||||
|
||||
:scss
|
||||
th > i {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user