64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
.qi_header
|
|
.right
|
|
=link_to ic(:plus)+" Créer une facture", admin_p_customers_path(:offre => true, :action_type => "Facture"), :class => "btn btn-primary bgbd-documents"
|
|
%h1
|
|
Documents comptables
|
|
%span
|
|
Liste
|
|
|
|
.qi_search_row
|
|
=form_tag "", :method => "get", :onsubmit => "" do
|
|
|
|
%table
|
|
%tr
|
|
%td
|
|
Début
|
|
%td
|
|
.input-group
|
|
=text_field_tag :start, params[:start],:class => "form-control datepicker", :placeholder => "Début"
|
|
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
|
|
=ic(:times)
|
|
|
|
%br
|
|
-if @start and @stop
|
|
|
|
=link_to "< Mois précédent",request.query_parameters.merge({start: ((@start - 1.month).beginning_of_month.strftime('%d/%m/%Y')), stop: ((@stop - 1.month).end_of_month.strftime('%d/%m/%Y'))}), :class => "btn btn-default"
|
|
|
|
|
|
%td
|
|
Fin
|
|
%td
|
|
.input-group
|
|
=text_field_tag :stop, params[:stop],:class => "form-control datepicker", :placeholder => "Fin"
|
|
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
|
|
=ic(:times)
|
|
%br
|
|
-if @start and @stop
|
|
=link_to "Mois suivant >",request.query_parameters.merge({start: ((@start + 1.month).beginning_of_month.strftime('%d/%m/%Y')), stop: ((@stop + 1.month).end_of_month.strftime('%d/%m/%Y'))}), :class => "btn btn-default"
|
|
|
|
|
|
-params[:price_document_type_ids] = params[:price_document_type_ids] || []
|
|
%td
|
|
Type de document :
|
|
%td
|
|
|
|
-PriceDocumentType.where(:enabled => true).order("id DESC").each do |pdt|
|
|
%p
|
|
= check_box_tag :"price_document_type_ids[]", pdt.id, (true if params[:price_document_type_ids].include?(pdt.id.to_s)), {:id => "price_document_type_ids_#{pdt.id}"}
|
|
= label_tag "price_document_type_ids_"+pdt.id.to_s, pdt.label
|
|
|
|
=render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @price_documents}
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @price_documents}
|
|
|
|
|
|
:scss
|
|
.qi_search_row{
|
|
td{
|
|
vertical-align:top;
|
|
}
|
|
}
|
|
|
|
|
|
|