41 lines
742 B
Plaintext
41 lines
742 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 :contact_role, :label => "Possibilité d'attribuer un contact ? "
|
|
|
|
= f.input :color, :label => "Couleur du contact"
|
|
|
|
|
|
|
|
|
|
.actions= f.submit "Sauvegarder", :class => "btn btn-primary"
|
|
|