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