Sha256: 1467fbfd547ae9cb2d2ae8279576fca2e89161d8bd9704bc3c90872d97dc2d7a

Contents?: true

Size: 1.88 KB

Versions: 6

Compression:

Stored size: 1.88 KB

Contents

- title link_to(@account.name.blank? ? @account.name_was : @account.name, '#', :rel => 'my_account_name', :title => t('.ask_for_name'), :class => 'editable')

- content_for :head do
  = javascript_include_tag 'admin/account'

- content_for :submenu do
  = render 'admin/shared/menu/settings'

- content_for :buttons do
  = admin_button_tag t('.new_site'), new_admin_site_url, :class => 'new'

%p= t('.help')

= semantic_form_for @account, :as => :my_account, :url => admin_my_account_url, :html => { :class => 'save-with-shortcut' } do |f|

  = f.foldable_inputs :name => :information, :style => 'display: none' do
    = f.input :name

  = f.foldable_inputs :name => :credentials do
    = f.input :email
    = f.custom_input :password, :label => :new_password do
      = f.password_field :password, :autocomplete => "off"
    = f.custom_input :password_confirmation, :label => :new_password_confirmation do
      = f.password_field :password_confirmation, :autocomplete => "off"

  = f.foldable_inputs :name => :sites, :class => 'sites off' do
    - @account.sites.each do |site|
      %li{ :class => 'item' }
        %strong= link_to site.name, main_site_url(site, :uri => true)
        %em= site.domains.join(', ')

        - if admin_on?(site) && site != current_site
          %span{ :class => 'actions' }
            = link_to image_tag('admin/form/icons/trash.png'), admin_site_url(site), :class => 'remove first', :confirm => t('admin.messages.confirm'), :method => :delete

  = f.foldable_inputs :name => :language, :class => 'language' do
    = f.custom_input :language, { :css => 'full', :with_label => false } do
      - Locomotive.config.locales.each do |locale|
        %span
          %label
            = image_tag "admin/icons/flags/#{locale}.png"
            = f.radio_button :locale, locale
             
            = t(".#{locale}")

  = render 'admin/shared/form_actions', :button_label => :update

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta5 app/views/admin/my_accounts/edit.html.haml
locomotive_cms-0.0.4.beta4 app/views/admin/my_accounts/edit.html.haml
locomotive_cms-0.0.4.beta3 app/views/admin/my_accounts/edit.html.haml
locomotive_cms-0.0.4.beta2 app/views/admin/my_accounts/edit.html.haml
locomotive_cms-0.0.4.beta1 app/views/admin/my_accounts/edit.html.haml
locomotive_cms-0.0.4 app/views/admin/my_accounts/edit.html.haml