jipe_app/app/views/admin/admins/_form.html.haml
2019-04-11 17:07:52 +02:00

43 lines
842 B
Plaintext

=semantic_form_for [:admin, @admin], :remote => true do |f|
.content
%h3
-if @admin.id
Modifier un admin
-else
Ajouter un admin
= f.inputs do
= f.input :email, :label => "Email :"
= f.input :username, :label => "Login :"
= f.input :name, :label => "Nom :"
= f.input :firstname, :label => "Prénom :"
= f.input :password, :label => "Mot de passe :"
= f.input :password_confirmation, :label => "Confirmation :"
= f.input :color, :label => "Couleur pour identification dans contacts"
= f.input :cms, :label => "Possibilité de gérer le contenu du site ?"
= f.input :contact_role, :label => "Possibilité de gérer les contacts ?"
.actions= f.submit "Sauvegarder", :class => "btn btn-primary"