Sha256: cd2be289d93a63a8751ea78dc082d86d0a7ccdfe6d1aaafa7f4b0b12e6da7227

Contents?: true

Size: 1.49 KB

Versions: 44

Compression:

Stored size: 1.49 KB

Contents

- @page_title = @user.name + ' ' + t('preferences') + ' - ' + default_page_title
- body_classes << 'edit_personal_preferences'

- render_region :main do |main|
  - main.edit_header do
    %h1= t('personal_preferences')

  - main.edit_form do
    = form_for @user, :url => admin_preferences_path, :html => { :method => :put, 'data-onsubmit_status' => "#{t('saving_preferences')}&#8230;" } do |f|
      %fieldset
        = render :partial => 'admin/users/avatar'

        = render_region :form_top, :locals => {:f => f}

        - render_region :form, :locals => {:f => f} do |form|
          - form.edit_first_name do
            %p
              = f.label :name, t("first_name")
              = f.text_field :first_name, :class => 'textbox', :size => 32, :maxlength => 100

          - form.edit_last_name do
            %p
              = f.label :name, t("last_name")
              = f.text_field :last_name, :class => 'textbox', :size => 32, :maxlength => 100

          - form.edit_email do
            %p
              = f.label :email,  t("email_address"), :class => 'optional'
              = f.text_field 'email', :class => 'textbox', :maxlength => 255

          - form.edit_password do
            = render 'admin/users/password_fields', :f => f

        - render_region :form_bottom, :locals => {:f => f} do |form_bottom|
          - form_bottom.edit_buttons do
            .buttons
              = save_model_button @user
              = t('or')
              = link_to t('cancel'), admin_pages_url, class: 'alt'

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
trusty-cms-5.3.9 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.8 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.7 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.6 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.5 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.4 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.3 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.2 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3.1 app/views/admin/preferences/edit.html.haml
trusty-cms-5.3 app/views/admin/preferences/edit.html.haml
trusty-cms-5.2.3 app/views/admin/preferences/edit.html.haml
trusty-cms-5.2.2 app/views/admin/preferences/edit.html.haml
trusty-cms-5.2.1 app/views/admin/preferences/edit.html.haml
trusty-cms-5.2.0 app/views/admin/preferences/edit.html.haml
trusty-cms-5.1.0 app/views/admin/preferences/edit.html.haml
trusty-cms-5.0.9 app/views/admin/preferences/edit.html.haml
trusty-cms-5.0.7 app/views/admin/preferences/edit.html.haml
trusty-cms-5.0.6 app/views/admin/preferences/edit.html.haml
trusty-cms-5.0.5 app/views/admin/preferences/edit.html.haml
trusty-cms-5.0.4 app/views/admin/preferences/edit.html.haml