Sha256: 27605bdf284ee1480adec165049857a90376a4093fedbfa1c75c5f5fd72399e4

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

.col
  = form.label :email, Radmin::User.human_attribute_name("email")
  = form.text_field :email
  = form.label :password, form.object.new_record? ? Radmin::User.human_attribute_name("password") : Radmin::I18n.t(:change_password, :default => "Change Password")
  = form.password_field :password
  = form.label :password_confirmation, Radmin::User.human_attribute_name("password_confirmation")
  = form.password_field :password_confirmation
- has_role?(:admin) do
  %h2= Radmin::I18n.t(:roles,:default=>"Roles")
  .col
    - for role in Radmin::Role.all
      %div
        = check_box_tag "admin_user[role_ids][]", role.id, @user.roles.include?(role), :id => "admin_user_role_#{role.name.underscore.to_sym}"
        = label_tag "admin_user_role_#{role.name.underscore.to_sym}", Radmin::I18n.t(role.name.underscore.to_sym,:default=>h(role.name.capitalize)), :class => "light inline"
%p.buttons
  = form.submit Radmin::I18n.t(:save,:default=>"Save")
  = Radmin::I18n.t(:or,:default=>"or")
  = link_to Radmin::I18n.t(:cancel,:default=>"Cancel"), admin_users_path

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radmin-0.3.3 app/views/radmin/users/_form.html.haml
radmin-0.3.2 app/views/radmin/users/_form.html.haml
radmin-0.3.1 app/views/radmin/users/_form.html.haml