2014-08-24 00:18:02 +02:00

72 lines
1.7 KiB
Plaintext

= semantic_form_for [:admin, @student_user] do |f|
%hr
.row
.col-md-4
=f.input :lock, :label => "Verouillé"
=l f.object.locked_at if f.object.lock
.col-md-4
=f.input :student_group, :as => :check_boxes, :collection => StudentGroup.all, :label => "Groupe d'étudiant"
%hr
.row
.col-md-4
= f.input :name, :label => "Nom"
.col-md-4
= f.input :firstname, :label => "Prénom"
.col-md-4
=image_tag(f.object.avatar.square.url, :style => "height:4em;float:left;margin-right:10px;border-radius:50%;") if f.object.avatar
= f.input :avatar, :label => "Image de profil"
.row
.col-md-4
= f.input :email, :label => "Email"
.col-md-4
= f.input :show_email, :label => "Permettre aux étudiants de voir mon mail ?" if f.object.id
.row
.col-md-4
= f.input :password, :label => "Mot de passe"
.col-md-4
= f.input :password_confirmation, :label => "Confirmation"
.col-md-4
.row
.col-md-4
= f.input :tel, :label => "Téléphone"
.col-md-4
= f.input :show_tel, :label => "Permettre aux étudiants de voir mon numéro ?" if f.object.id
.row
.col-md-4
= f.input :address, :label => "Adresse"
.col-md-4
= f.input :address2, :label => "Adresse (suite)"
.col-md-4
.row
.col-md-4
= f.input :cp, :label => "Code postal"
.col-md-4
= f.input :city, :label => "Ville"
.col-md-4
= f.input :country, :label => "Pays", :as => :string
=f.inputs do
= f.input :bio, :label => "Présentation"
%br
=f.submit "Sauvegarder", :class => "btn btn-primary"