This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.

21 lines
853 B
Plaintext

=semantic_form_for [:admin, @stock_movement], :remote => true do |f|
.content
=f.inputs do
-# = f.input :movement_type, :label => "movement_type :", :as => :hidden
= f.hidden_field :movement_type
= f.input :description, :label => "Description :", :as => :string
= f.input :date, :label => "Date :", :as => :date
.stock_movement_lines_form
=f.semantic_fields_for :stock_movement_lines do |f|
=render :partial => "admin/stock_movement_lines/form", :locals => {:form => f}
%p= link_to_add_fields "Ajouter une ligne", f, :stock_movement_lines, {:class => "btn btn-primary", :partial =>(@stock_movement.movement_type == "cred" ? "admin/stock_movement_lines/form_cred" : "admin/stock_movement_lines/form")}
=render :partial => "qi/actions", :locals => {:f => f}