Sha256: 5b96cbeb022653a45246e7c4fe8de09bdc0ec83cabb6638329ce424908a1cd58

Contents?: true

Size: 1.56 KB

Versions: 42

Compression:

Stored size: 1.56 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_url, :html => { :method => :put, 'data-onsubmit_status' => "#{t('saving_preferences')}&#8230;" } do |f|

      = render :partial => 'admin/users/avatar'

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

      - render_region :form, :locals => {:f => f} do |form|
        - form.edit_name do
          %p
            = f.label :name, t("name")
            = f.text_field :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', :size => 32, :maxlength => 255

        - form.edit_username do
          %p
            = f.label :login, t("username")
            = f.text_field "login", :class => "textbox", :size => 32, :maxlength => 40, :required => true

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

        - form.edit_locale do
          %p
            = f.label :locale, t('language')
            = f.select "locale", available_locales_select

      - 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_url

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
trusty-cms-2.0.9.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.8.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.7.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.5.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.4.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.3.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.2.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.1.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-2.0.0.pre.beta app/views/admin/preferences/edit.html.haml
trusty-cms-1.2.29 app/views/admin/preferences/edit.html.haml
trusty-cms-1.2.28 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.28 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.27 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.26 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.25 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.24 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.23 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.22 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.21 app/views/admin/preferences/edit.html.haml
trusty-cms-1.1.20 app/views/admin/preferences/edit.html.haml