46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
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 :super_admin, :label => "Super admin ?"
|
|
|
|
= f.input :email, :label => "Email :"
|
|
|
|
|
|
= f.input :username, :label => "Login :"
|
|
|
|
|
|
= f.input :name, :label => "Nom :"
|
|
|
|
|
|
|
|
= f.input :firstname, :label => "Prénom :"
|
|
|
|
|
|
= f.input :generate_mdp, :label => "Forcer la génération d'un nouveau mot de passe ? (un mail sera envoyé à l'utilisateur)", :as => :boolean
|
|
|
|
= f.input :password, :label => "Mot de passe :", :input_html => { :autocomplete => "new-password"}
|
|
|
|
|
|
|
|
= 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"
|
|
|