Sha256: 35b24980eae72f122ea65fab7d10e48258a3831ff0f1110d84a714fd1f1b5c6b
Contents?: true
Size: 1.67 KB
Versions: 6
Compression:
Stored size: 1.67 KB
Contents
= form_for [:admin, @user], :html => {class: 'user_form'} do |f| = render_region :form_top, :locals => {:f => f} - render_region :form, :locals => {:f => f} do |form| - form.edit_first_name do = f.label :name, t('first_name') = f.text_field :first_name, :class => 'textbox', :maxlength => 100 - form.edit_last_name do = f.label :name, t('last_name') = f.text_field :last_name, :class => 'textbox', :maxlength => 100 - form.edit_email do = f.label :email, t('email_address') , :class => 'optional' = f.text_field 'email', :class => 'textbox', :maxlength => 255 - form.edit_password do = render 'password_fields', :f => f - form.edit_roles do - if current_user.admin? %fieldset.multi_option %label= t('roles') = f.check_box 'admin', :class => 'checkbox' = f.label :admin, t('admin'), :class => 'checkbox' = f.check_box 'designer', :class => 'checkbox' = f.label :designer, t('editor'), :class => 'checkbox' = f.check_box 'content_editor', :class => 'checkbox' = f.label :content_editor, t('content_editor'), :class => 'checkbox' - form.edit_notes do %fieldset = f.label :notes, t('notes'), :class => 'optional' ~ f.text_area 'notes', :size => '53x4', :class => 'textarea' - render_region :form_bottom, :locals => {:f => f} do |form_bottom| - form_bottom.edit_buttons do .page-actions = save_model_button(@user) = save_model_and_continue_editing_button(@user) = t('or') = link_to t('cancel'), admin_users_path, class: 'alt' - form_bottom.edit_timestamp do = updated_stamp @user
Version data entries
6 entries across 6 versions & 1 rubygems