intra_app/app/views/admin/p_trucks/_form.html.haml
Nicolas Bally 761e075bb6 initial
2018-11-08 21:47:30 +01:00

23 lines
865 B
Plaintext
Executable File

=semantic_form_for [:admin, @p_truck], :remote => true do |f|
.content
=f.inputs do
= f.input :remorque, :label => "Remorque ?"
= f.input :marque, :label => "Marque :"
= f.input :immat, :label => "Immatriculation :"
= f.input :label, :label => "Description :"
= f.input :code, :label => "Code :"
= f.input :p_driver_id, :label => "Chauffeur par défaut :", :collection => PDriver.all, :as => :select, :include_blank => true if !@p_truck.remorque
%hr
%h3
Cuves du camion :
%p= link_to_add_fields "Ajouter une ligne", f, :p_truck_spaces
.p_truck_spaces_form
=f.semantic_fields_for :p_truck_spaces do |form|
=render :partial => "admin/p_truck_spaces/form", :locals => {:form => form}
.actions=f.submit "sauvegarder", :class => "btn btn-primary"