This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/admins/_form.html.haml
2021-08-23 10:26:02 +02:00

41 lines
949 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 :", :as => :password
= f.input :password_confirmation, :label => "Confirmation :", :as => :password
= f.input :societe_id, :label => "Société :", :include_blank => true, :collection => Societe.order(:nom).all, :as => :select, :member_label => :nom
=f.input :super_admin, :label => "Super admin ?"
=f.input :admin_roles, :label => "Rôles :", :collection => AdminRole.all, :as => :check_boxes
.actions= f.submit "Sauvegarder", :class => "btn btn-primary"