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.2.6 app/views/incline/users/_form.html.erb
incline-0.2.5 app/views/incline/users/_form.html.erb
incline-0.2.4 app/views/incline/users/_form.html.erb
incline-0.2.3 app/views/incline/users/_form.html.erb
incline-0.1.9 app/views/incline/users/_form.html.erb
incline-0.1.8 app/views/incline/users/_form.html.erb
incline-0.1.7 app/views/incline/users/_form.html.erb
incline-0.1.5 app/views/incline/users/_form.html.erb