Sha256: 8588460581c60b84205166532a4a3b668a649e795d16b0658b05f01bed229738

Contents?: true

Size: 718 Bytes

Versions: 22

Compression:

Stored size: 718 Bytes

Contents

<%= bootstrap_form_for(@user, layout: :horizontal) do |f| %>

  <% if context == :create %>
    <%= f.text_field :username %>
    <%= f.text_field :fullname %>
    <%= f.email_field :email %>
    <%= f.password_field :password %>
    <%= f.password_field :password_confirmation %>
    <%= f.role_select %>
  <% elsif context == :update %>
    <% if current_user == @user %>
      <%= f.role_select disabled: 'user_admin' %>
    <% else %>
      <%= f.role_select %>
    <% end %>
  <% end %>

  <%= f.form_group class: 'form-actions' do %>
    <%= f.submit submit_text, class: 'btn btn-primary' %>
    <%= back_link class: 'btn btn-default pull-right', text: t('.cancel_text'), icon: 'times' %>
  <% end %>

<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
chaltron-0.3.2 app/views/chaltron/users/_form.html.erb
chaltron-0.3.1 app/views/chaltron/users/_form.html.erb
chaltron-0.3.0 app/views/chaltron/users/_form.html.erb
chaltron-0.2.11 app/views/chaltron/users/_form.html.erb
chaltron-0.2.10 app/views/chaltron/users/_form.html.erb
chaltron-0.2.9 app/views/chaltron/users/_form.html.erb
chaltron-0.2.8 app/views/chaltron/users/_form.html.erb
chaltron-0.2.7 app/views/chaltron/users/_form.html.erb
chaltron-0.2.6 app/views/chaltron/users/_form.html.erb
chaltron-0.2.5 app/views/chaltron/users/_form.html.erb
chaltron-0.2.4 app/views/chaltron/users/_form.html.erb
chaltron-0.2.3 app/views/chaltron/users/_form.html.erb
chaltron-0.2.2 app/views/chaltron/users/_form.html.erb
chaltron-0.2.1 app/views/chaltron/users/_form.html.erb
chaltron-0.2.0 app/views/chaltron/users/_form.html.erb
chaltron-0.1.6 app/views/chaltron/users/_form.html.erb
chaltron-0.1.5 app/views/chaltron/users/_form.html.erb
chaltron-0.1.4 app/views/chaltron/users/_form.html.erb
chaltron-0.1.3 app/views/chaltron/users/_form.html.erb
chaltron-0.1.2 app/views/chaltron/users/_form.html.erb