AlchemyCMS/alchemy-devise

View on GitHub
app/views/alchemy/admin/users/_fields.html.erb

Summary

Maintainability
Test Coverage
<%= f.input :firstname %>
<%= f.input :lastname %>
<%= f.input :login, autofocus: true %>
<%= f.input :email %>
<%= f.input :language,
  collection: translations_for_select,
  include_blank: false,
  input_html: {class: 'alchemy_selectbox'} %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<% if can_update_role? %>
  <%= f.input :alchemy_roles,
    collection: @user_roles,
    input_html: {
      multiple: true,
      is: 'alchemy-select',
      class: 'alchemy_selectbox'
    },
    as: 'select' %>
<% end %>
<% unless while_signup? %>
  <div class="input tag_list">
    <%= f.label :tag_list %>
    <%= render 'alchemy/admin/partials/autocomplete_tag_list',
      f: f,
      object: @user %>
  </div>
<% end %>
<%= f.input :send_credentials, as: 'boolean' %>
<%= f.submit Alchemy.t(:save) %>