Sha256: db648bdb8c8b19eb024883e672be0cca80d99b8fea09eb8859848664ed5b0050
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
<% if @user.new_record? && Pageflow.config.quotas.get(:users, @user.account).exhausted? %> <%= render 'admin/users/quota_exhausted' %> <% else %> <%= admin_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('pageflow.admin.users.email_invitation_hint') %> <%= f.input :first_name %> <%= f.input :last_name %> <%= f.input :locale, as: :select, include_blank: false, collection: available_locales_collection %> <% 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('pageflow.admin.users.role_hint.admin') : I18n.t('pageflow.admin.users.role_hint.others') %> <% end %> <%= f.actions %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems