Sha256: 1fae9d7c39264fe19fc5343086ad5455d62235937fef256e441c168685b71e17
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 Bytes
Contents
<% if @user.new_record? && Pageflow.config.quota.exceeded?(:users, @user.account) %> <%= render 'admin/users/quota_exceeded' %> <% else %> <%= semantic_form_for([:admin, @user.becomes(User)]) do |f| %> <%= f.inputs "Details" do %> <% if @user.new_record? %> <%= quota_state_description(:users, @user.account) %> <% end %> <%= f.input :email, :hint => f.object.new_record? && I18n.t('admin.users.email_invitation_hint') %> <%= f.input :first_name %> <%= f.input :last_name %> <% if authorized?(:read, Pageflow::Account) %> <%= f.input :account, :include_blank => false %> <% end %> <%= f.input :role, :collection => collection_for_user_roles, :include_blank => false, :hint => authorized?(:read, Pageflow::Account) ? I18n.t('admin.users.role_hint.admin') : I18n.t('admin.users.role_hint.other') %> <% end %> <%= f.actions %> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.1.0 | app/views/admin/users/_form.html.erb |