<%= render '/shared/errors_list', error_object: user %>
<div class="row">
  <div class="col-md-6">
    <div class="form-group">
      <%= form.label :email %>
      <%= form.email_field :email, class: 'form-control', placeholder: 'Wprowadź email' %>
    </div>
     <div class="form-group">
       <%= form.label :description %>
       <%= form.text_field :description, class: 'form-control', placeholder: 'Wprowadź opis' %>
    </div>
  </div>
  <div class="col-md-6">
    <div class="form-group">
      <%= form.label :password %>
      <%= form.password_field :password, class: 'form-control', placeholder: 'Wprowadź hasło' %>
    </div>
     <div class="form-group">
       <%= form.label :password_confirmation %>
       <%= form.password_field :password_confirmation, class: 'form-control', placeholder: 'Powtórz hasło' %>
    </div>
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <div class="form-group">
      <%= form.label :roles %>
      <%= form.select(:role_ids, @roles.collect {|p| [ p.description, p.id ] }, { include_blank: false }, { class: 'form-control duallistbox', multiple: true } ) %>
    </div>
  </div>
</div>
<div class="card-footer">
  <%= link_to '< Wróć', settings_users_path, class: 'btn btn-info' %>
  <button type="submit" class="btn btn-primary">Zapisz</button>
</div>
