23 lines
1.0 KiB
Plaintext
Executable File
23 lines
1.0 KiB
Plaintext
Executable File
=semantic_form_for [:admin, @politique], :remote => (true if @politique.id) do |f|
|
|
.content
|
|
=f.inputs do
|
|
|
|
|
|
= f.input :fiche_type_id, :label => "Type de fiche :"
|
|
= f.input :depute_group_id, :label => "Parti politique :", :collection => DeputeGroup.all, :as => :select
|
|
= f.input :fiche_url, :label => "Url :"
|
|
= f.input :titre, :label => "Titre :"
|
|
= f.input :civilite, :label => "Civilité :"
|
|
= f.input :firstname, :label => "Prénom :"
|
|
= f.input :name, :label => "Nom :"
|
|
= f.input :email, :label => "Email :"
|
|
= f.input :politique_departement_id, :label => "Département :", :collection => PolitiqueDepartement.all, :include_blank => false, :as => :select
|
|
= f.input :circonscription_id, :label => "Circonscription :"
|
|
= f.input :depute_commissions, :label => "Commission (député):", :collection => DeputeCommission.all, :include_blank => false, :as => :check_boxes
|
|
|
|
|
|
|
|
|
|
.actions
|
|
=f.submit "sauvegarder", :class => "btn btn-primary"
|
|
|