Add a new user

<%= form_for @casein_admin_user do |form| %>
<%= casein_text_field form, @casein_admin_user, :login, { size: 30, casein_label: "Username" } %>
<%= casein_text_field form, @casein_admin_user, :name %>
<%= casein_text_field form, @casein_admin_user, :email %>
<%= casein_time_zone_select form, @casein_admin_user, :time_zone, ActiveSupport::TimeZone.us_zones %>
<%= casein_select form, @casein_admin_user, :access_level, casein_get_access_level_array, { casein_label: "Role" } %>
<%= casein_password_field form, @casein_admin_user, :password, { casein_label: "Password" } %>
<%= casein_password_field form, @casein_admin_user, :password_confirmation, { casein_label: "Repeat password" } %>

<%= link_to 'Cancel', casein_admin_users_path, class: 'btn btn-mini btn-danger' %> <%= form.submit "Add new user", class: "btn btn-mini btn-primary" %>

<% end %> <%= content_for :sidebar do %>
  • <%= link_to "#{casein_show_icon('th-list')}Back to list".html_safe, casein_admin_users_path %>
  • <% end %>