Sha256: d908df0a08e9c0c1beb739b5145c64d8ce6cc4e91919ca2d5a32bc2c3695348c
Contents?: true
Size: 1.94 KB
Versions: 3
Compression:
Stored size: 1.94 KB
Contents
= form_for(@user, :url => url , :html => {:class => "validation"}) do |f| = gb_error_messages_for(@user) .span5 %legend Details - if current_user.id != @user.id %p = f.label :role = f.select(:role , current_user.user_valid_roles(@user).collect{|u| [u.humanize , u] } ) %p = f.label :first_name = f.text_field(:first_name, :class => "large required") %p = f.label :last_name = f.text_field(:last_name, :class => "large") %p = f.label :email , "E-mail" = f.text_field(:email, :class => "large required") %p = f.label :bio, "Bio" = f.text_area(:bio, :class => "large ") %p = f.label :image_id , "Image" = f.asset_browser( :image_id , opts = { :filter => "image" } ) = f.fields_for :authorizations do |auth_form| %p = auth_form.hidden_field :authorizable_type - if auth_form.object.authorizable_type == "Gluttonberg::Page" %label Page = auth_form.select(:authorizable_id, pages_lists_options, {:prompt => "Select Page"}, {:class=>" chzn-select"}) - elsif auth_form.object.authorizable_type == "Gluttonberg::Blog::Weblog" = auth_form.label :allow , "Blog (#{auth_form.object.authorizable.name})" = auth_form.check_box :allow = auth_form.hidden_field :authorizable_id - else = auth_form.label :allow , auth_form.object.authorizable_type.to_s.demodulize = auth_form.check_box :allow .span4 %legend Password %p = f.label :password , "Password" = f.password_field(:password, :class => "medium", :label => "Password") %p.help-block Password #{Rails.configuration.password_validation_message} %p = f.label :password_confirmation , "Confirm Password" = f.password_field(:password_confirmation, :class => "medium", :label => "Confirm Password") = form_controls(admin_users_path)
Version data entries
3 entries across 3 versions & 1 rubygems