Sha256: 55e2dbc3ce25f95537adee9b007538f3ec82c0224e6c712c698a43ef1c050f71

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 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 activate", :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
        
        - 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
          %p.buttons
            = save_model_button @user
            = t('or')
            = link_to t('cancel'), admin_url

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.1.4 app/views/admin/preferences/edit.html.haml
radiantcms-couchrest_model-0.1.3 app/views/admin/preferences/edit.html.haml
radiantcms-couchrest_model-0.1.2 app/views/admin/preferences/edit.html.haml
radiantcms-couchrest_model-0.1.1 app/views/admin/preferences/edit.html.haml
radiantcms-couchrest_model-0.1 app/views/admin/preferences/edit.html.haml
radiant-0.9.1 app/views/admin/preferences/edit.html.haml