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