Sha256: 89c47113bf59e0dc1fe48946e2a6b73a142b230a6e50a050f4f4268578ebc8c3

Contents?: true

Size: 820 Bytes

Versions: 4

Compression:

Stored size: 820 Bytes

Contents

<%= bootstrap_form_for user, :layout => :horizontal, :label_col => 'col-sm-3', :control_col => 'col-sm-9' do |f| %>
  <%= f.text_field :forename %>
  <%= f.text_field :surname %>
  <%= f.email_field :email %>
  <%= f.text_field :telephone_number %>
  <%= f.password_field :password %>
  <%= f.password_field :password_confirmation %>
  <% if can?(:manage, User) %>
    <%= f.select :role, User::ROLES.map { |r| [r.humanize, r] } %>
    <%= f.text_area :comment, rows: 4 %>
    <%= f.form_group do %>
      <%= f.check_box :active, :label => User.human_attribute_name(:active) %>
    <% end %>
  <% end %>

  <hr />
  <div class="mb-5">
    <%= submit_tag t('txt.common.save'), :class => 'btn btn-primary' %>
    <%= link_to t("txt.common.cancel"), users_path, :class => "btn btn-outline-secondary" %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/users/_form.html.erb
iqvoc-4.14.4 app/views/users/_form.html.erb
iqvoc-4.13.2 app/views/users/_form.html.erb
iqvoc-4.13.0 app/views/users/_form.html.erb