Sha256: b1e9b0af59ab670f90b830b42cf4c7fffb060b375b317d25d49a94d811c001d3

Contents?: true

Size: 1.65 KB

Versions: 20

Compression:

Stored size: 1.65 KB

Contents

<%= form_for(@auth_user, url: @auth_user.new_record? ? admin_create_users_path : admin_create_user_path({:id => @auth_user.id.to_s}), method: @auth_user.new_record? ? :post : :put, namespace: @auth_user.id.to_s, as: :user) do |f| %>
  <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @auth_user} %>
  <div id="form_fields">
    <h3>Create A New User</h3>
    <div class="divider"></div>
    <!-- so here we have to provide for the email, mobile number, and whether they want to resend_sms_otp, or confirmation_email, for these two it can be a checkbox. -->
    <%= f.text_field :email %>
    <%= f.label :email %>
      
    <%= f.text_field :additional_login_param %>
    <%= f.label :additional_login_param %>

    <%= f.select("title", [["Mr","Mrs"],["Mrs","Mrs"],["Mast","Mast"],["Miss","Miss"],["Dr","Dr"]] , { include_blank: true }) %>

    <%= f.text_field :first_name %>
    <%= f.label :first_name %>

    <%= f.text_field :last_name %>
    <%= f.label :last_name %>

    <%= f.select("sex", [["Male","Male"],["Female","Female"],["Other","Other"]] , { include_blank: true }) %>

    <%= f.text_field :address %>
    <%= f.label :address %>  

    <%= f.text_field :date_of_birth, :class => "datepicker date_of_birth" %>
    <%= f.label :date_of_birth %>

    <!-- test if user can be created with these fields -->
    <!-- in the registrations controller -->
    <!-- also in the update controller -->
    <!-- also add them in the admin_create_user controller -->
    <!-- history will be a seperate thing -->
    <!-- there have to override for history points -->

  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.9 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.8 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.7 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.6 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.5 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.4 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.3 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.2 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.1 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.5.0 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.9 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.8 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.7 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.6 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.5 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.4 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.3 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.2 app/views/auth/admin_create_users/_form.html.erb
wordjelly-auth-1.4.0 app/views/auth/admin_create_users/_form.html.erb