update mask
This commit is contained in:
parent
4de195ad5f
commit
f360c0d004
@ -60,7 +60,7 @@
|
||||
|
||||
=#render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @p_customer_sheets}
|
||||
|
||||
-nbr_td = 15
|
||||
-nbr_td = 10
|
||||
|
||||
.qi_pannel.padding.new_table_container
|
||||
.table-slider
|
||||
@ -79,22 +79,23 @@
|
||||
%tr
|
||||
-if checkbox
|
||||
%th
|
||||
%th.mask.plus-all
|
||||
=link_to ic("plus-square-o"), '#'
|
||||
%th
|
||||
Produit
|
||||
%th
|
||||
Référence
|
||||
/ %th Qté
|
||||
%th.mask
|
||||
=ic("plus-square-o")
|
||||
%th.mask
|
||||
%th.mask.col-detail
|
||||
N° Commande
|
||||
%th.mask
|
||||
%th.mask.col-detail
|
||||
Client
|
||||
%th.mask
|
||||
%th.mask.col-detail
|
||||
Statut
|
||||
|
||||
%th.mask Date saisie
|
||||
%th.mask Date validation
|
||||
%th.mask.col-detail Commentaire
|
||||
%th.mask.col-detail Date saisie
|
||||
%th.mask.col-detail Date validation
|
||||
%th.mask Date livraison (ETA)
|
||||
|
||||
%th.mask
|
||||
@ -103,7 +104,6 @@
|
||||
Qté en stock
|
||||
%th.mask
|
||||
Qté souhaité
|
||||
%th.mask Commentaire
|
||||
%th.mask BPA
|
||||
%th.mask AV BPA
|
||||
%th.mask PAS BPA
|
||||
@ -118,11 +118,14 @@
|
||||
-if p_product_id != plr.p_product_id
|
||||
-p_product_id = plr.p_product_id
|
||||
%tr.prdct_tr
|
||||
-nbr_td.times.each do
|
||||
-nbr_td.times.each do
|
||||
%td
|
||||
|
||||
|
||||
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
|
||||
|
||||
|
||||
@ -131,6 +134,8 @@
|
||||
-if checkbox
|
||||
%td
|
||||
|
||||
%td.plus
|
||||
=link_to ic("plus-square-o"), "#"
|
||||
%td
|
||||
=link_to plr.p_product_ref.p_product.name, [:admin, plr.p_product_ref]
|
||||
%td
|
||||
@ -138,16 +143,15 @@
|
||||
=plr.p_product_ref.ct_sub_name
|
||||
=plr.p_product_ref.p_product_color.name if plr.p_product_ref.p_product_color
|
||||
|
||||
%td.plus
|
||||
=link_to ic("plus-square-o"), "#"
|
||||
%td
|
||||
|
||||
|
||||
%td.mask
|
||||
%td.col-detail
|
||||
|
||||
|
||||
%td.mask.col-detail
|
||||
/ %td.mask
|
||||
%td.mask
|
||||
%td.mask
|
||||
%td.mask
|
||||
%td.mask.col-detail
|
||||
%td.mask.col-detail
|
||||
%td.mask.col-detail
|
||||
%td.mask.col-detail
|
||||
%td.mask
|
||||
%td.mask
|
||||
∑
|
||||
@ -165,9 +169,7 @@
|
||||
|
||||
%td.mask
|
||||
=text_field_tag "qte[#{plr.p_product_ref.id}]", '', class: "small-input"
|
||||
%td.mask
|
||||
|
||||
|
||||
|
||||
%td.mask
|
||||
=ppr_lines.where(:cc_state => "BPA").sum(:qte).to_i
|
||||
%td.mask
|
||||
@ -177,7 +179,7 @@
|
||||
|
||||
%tbody.detail
|
||||
-ppr_lines.each do |price_line|
|
||||
%tr.details
|
||||
%tr
|
||||
- if checkbox
|
||||
%td
|
||||
=check_box_tag :"price_line_ids[]", price_line.id
|
||||
@ -185,19 +187,21 @@
|
||||
%td
|
||||
%td
|
||||
%td
|
||||
%td
|
||||
%td.col-detail
|
||||
=link_to [:admin, price_line.price_line_block.price_lineable] do
|
||||
=price_line.price_line_block.price_lineable.id
|
||||
=price_line.price_line_block.price_lineable.past_id
|
||||
|
||||
|
||||
|
||||
%td
|
||||
%td.col-detail
|
||||
=link_to price_line.p_customer.show_name, [:admin, price_line.p_customer]
|
||||
|
||||
%td
|
||||
=state_helper price_line.price_line_block.price_lineable.state
|
||||
|
||||
%td
|
||||
=price_line.comment
|
||||
%td
|
||||
= l price_line.cc_creation_date, :format => :short_date
|
||||
|
||||
@ -213,8 +217,6 @@
|
||||
|
||||
%td
|
||||
|
||||
%td
|
||||
=price_line.comment
|
||||
|
||||
%td
|
||||
=price_line.qte.to_i if price_line.cc_state == "BPA"
|
||||
@ -230,6 +232,12 @@
|
||||
%tr
|
||||
-nbr_td.times.each do
|
||||
%td
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
%td.col-detail
|
||||
|
||||
=submit_tag "Créer une demande de prix", :class => "btn btn-primary"
|
||||
|
||||
@ -264,11 +272,19 @@
|
||||
|
||||
:javascript
|
||||
$('.detail').hide()
|
||||
$('.col-detail').hide()
|
||||
$('.plus').click(function(event){
|
||||
$('.col-detail').toggle()
|
||||
console.log(event.currentTarget);
|
||||
$(event.currentTarget).parent().parent().next('tbody.detail').toggle();
|
||||
$(event.currentTarget).find('i').toggleClass('fa fa-plus-square-o').toggleClass('fa fa-minus-square-o')
|
||||
});
|
||||
$('.plus-all').click(function(event){
|
||||
$('.col-detail').toggle()
|
||||
$('tbody.detail').toggle();
|
||||
$(event.currentTarget).find('i').toggleClass('fa fa-plus-square-o').toggleClass('fa fa-minus-square-o')
|
||||
$('.plus').find('i').toggleClass('fa fa-plus-square-o').toggleClass('fa fa-minus-square-o')
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user