Sha256: ad67e347b5266e905b8191f1f81a2b3850ebbe7a45538534d14fa0fe1ce3823d
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
= simple_form_for(@user) do |f| - if params[:action] === 'settings' - title = t('fae.navbar.your_settings') - else - title = "#{params[:action]} User".titleize == render 'fae/shared/form_header', header: 'User', title: title main.content = fae_input f, :first_name = fae_input f, :last_name = fae_input f, :email = fae_input f, :password, helper_text: t('fae.user.password_hint') = fae_input f, :password_confirmation - if current_user.admin? || current_user.super_admin? = fae_association f, :role, collection: @role_collection, prompt: false
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-3.0.0 | app/views/fae/users/_form.html.slim |
fae-rails-2.2.0 | app/views/fae/users/_form.html.slim |
fae-rails-2.1.0 | app/views/fae/users/_form.html.slim |