25 lines
844 B
Plaintext
25 lines
844 B
Plaintext
=form.inputs do
|
|
|
|
=form.input :sheet_type, :as => :select, :collection => Sheet::SHEET_TYPE.map {|u| [u[1], u[0]] }, :include_blank => false
|
|
|
|
|
|
%p= link_to_add_fields "Ajouter une ligne", form, :people
|
|
|
|
.people_form
|
|
=form.semantic_fields_for :people do |form|
|
|
=render :partial => "people/form", :locals => {:form => form}
|
|
|
|
|
|
=form.input :corporate, :label => "Organisation"
|
|
=form.input :address, :label => "Adresse"
|
|
=form.input :address2, :label => "Adresse (suite)"
|
|
=form.input :address3, :label => "Adresse (suite)"
|
|
=form.input :pc, :label => "Code postal"
|
|
=form.input :city, :label => "Ville"
|
|
=form.input :country, :label => "Pays", :as => :string
|
|
=form.input :skills, :label => "Compétences"
|
|
|
|
|
|
|
|
= form.submit 'Enregistrer'
|
|
= link_to 'Annuler', :url => sheet_path(@sheet), :method => :get, :remote => true if @sheet.id |