Sha256: 8b819e1a6dc17e9a203158c1e28bfe26f0ebce3c090dc39a3bec2e77734592c0

Contents?: true

Size: 864 Bytes

Versions: 4

Compression:

Stored size: 864 Bytes

Contents

= simple_form_for(@user) do |f|
  = f.error_notification

  .form-inputs
    %ul.collapsible{"data-collapsible"=>"accordion"}
      %li
        .collapsible-header.blue-grey.white-text
          A l'exception d'un changement de rôle, l'édition des information d'un compte ne doit servir que lors d'un problème de connexion avec le GrAM.
          %p
            Clique sur cet encart si tu veux les voir quand même.

        .collapsible-body.white
          = f.input :email
          = f.input :firstname
          = f.input :lastname
          = f.input :hruid
          = f.input :uuid

    =f.label "Role"
    -if can? :update, (@user.role || Role)
      = f.collection_select(:role_id,@roles , :id, :name, include_blank: true)
    -else
      = @user.role ? @user.role.name : "Basic"
  .form-actions
    = f.button :submit, t('users.forms.buttons.save')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gorg_engine-1.2.4 app/views/users/_form.html.haml
gorg_engine-1.2.3 app/views/users/_form.html.haml
gorg_engine-1.2.0 app/views/users/_form.html.haml
gorg_engine-1.1.0 app/views/users/_form.html.haml