jipe_app/app/views/admin/detenus/_form.html.haml
2017-08-14 10:53:30 +02:00

18 lines
760 B
Plaintext
Executable File

=semantic_form_for [:admin, @detenu], :remote => true do |f|
.content
=f.inputs do
=f.input :detenu_group_id, :label => "Type :", :as => :select, :collection => DetenuGroup.order(:name).all, :include_blank => false
= f.input :name, :label => "Nom :"
=f.input :sexe, :label => "Sexe :", :as => :select, :collection => [["Mâle", 1], ["Femelle", 2]], :include_blank => false
= f.input :free_text, :label => "Texte libération :"
= f.input :free_date, :label => "Date libération :"
= f.input :age_text, :label => "Age :"
= f.input :provisoire, :label => "Provisoire ?"
= f.input :link, :label => "Lien vers une page :"
.actions=f.submit "sauvegarder", :class => "btn btn-primary"