Sha256: f1c07995676891c2210afde3637fd478184bd0de52c008655ed4c990c4410067

Contents?: true

Size: 1.06 KB

Versions: 48

Compression:

Stored size: 1.06 KB

Contents

<%= error_summary(user) %>

<div class="row">
  <div class="col-md-4 col-md-offset-4">
    <%= form_for(user, url: user.new_record? ? signup_path : user_path(user), method: user.new_record? ? 'post' : 'patch') do |f| %>
        <%= f.text_form_group :name, field_maxlength: 100 %>
        <%= f.text_form_group :email, field_type: 'email', field_maxlength: 250 %>
        <%= f.text_form_group :password, field_type: 'password' %>
        <%= f.text_form_group :password_confirmation, field_type: 'password' %>
        <% if system_admin? && !current_user?(user) %>
        <%= f.select_form_group :group_ids, Incline::AccessGroup.all.sorted, :id, :to_s, label_text: 'Group memberships', field_class: 'form-control select2', field_multiple: true %>
        <% end %>
        <% unless system_admin? %>
          <%= f.recaptcha :recaptcha if user.new_record? %>
        <% end %>

        <%= f.submit user.new_record? ? 'Create account' : 'Update account', class: 'btn btn-primary' %>
        <%= link_to 'Cancel', root_url, class: 'btn btn-default' %>
    <% end %>
  </div>
</div>

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 app/views/incline/users/_form.html.erb
incline-0.3.13 app/views/incline/users/_form.html.erb
incline-0.3.12 app/views/incline/users/_form.html.erb
incline-0.3.11 app/views/incline/users/_form.html.erb
incline-0.3.10 app/views/incline/users/_form.html.erb
incline-0.3.9 app/views/incline/users/_form.html.erb
incline-0.3.8 app/views/incline/users/_form.html.erb
incline-0.3.7 app/views/incline/users/_form.html.erb
incline-0.3.6 app/views/incline/users/_form.html.erb
incline-0.3.5 app/views/incline/users/_form.html.erb
incline-0.3.4 app/views/incline/users/_form.html.erb
incline-0.3.3 app/views/incline/users/_form.html.erb
incline-0.3.2 app/views/incline/users/_form.html.erb
incline-0.3.1 app/views/incline/users/_form.html.erb
incline-0.3.0 app/views/incline/users/_form.html.erb
incline-0.2.36 app/views/incline/users/_form.html.erb
incline-0.2.35 app/views/incline/users/_form.html.erb
incline-0.2.34 app/views/incline/users/_form.html.erb
incline-0.2.28 app/views/incline/users/_form.html.erb
incline-0.2.27 app/views/incline/users/_form.html.erb