47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
- 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
|
|
/ = include_javascripts :account
|
|
|
|
- content_for :submenu do
|
|
= render_cell 'locomotive/settings_menu', :show
|
|
|
|
- if multi_sites?
|
|
- content_for :buttons do
|
|
= local_action_button t('.new_site'), new_site_url, :class => 'new' if can?(:create, Locomotive::Site)
|
|
|
|
%p= t('.help')
|
|
|
|
= semantic_form_for @account, :as => :my_account, :url => my_account_url, :html => { :class => 'save-with-shortcut' } do |f|
|
|
|
|
= f.inputs :name => :information do
|
|
= f.input :name
|
|
|
|
= f.inputs :name => :credentials do
|
|
= f.input :email
|
|
= f.input :password, :input_html => { :autocomplete => "off" }
|
|
= f.input :password_confirmation, :input_html => { :autocomplete => "off" }
|
|
|
|
- if multi_sites?
|
|
= f.inputs :name => :sites, :class => 'sites' do
|
|
%ul.list
|
|
- @account.sites.each do |site|
|
|
%li
|
|
%strong= link_to site.name, site_url(site)
|
|
%em= site.domains.join(', ')
|
|
|
|
- if admin_on?(site) && site != current_site
|
|
%span{ :class => 'actions' }
|
|
= link_to 'x', site_url(site), :class => 'remove first', :confirm => t('locomotive.messages.confirm'), :method => :delete
|
|
|
|
= f.inputs :name => :language, :class => 'language' do
|
|
- Locomotive.config.locales.each do |locale|
|
|
%span
|
|
= f.radio_button :locale, locale
|
|
%label{ :for => "my_account_locale_#{locale.downcase}" }
|
|
= image_tag "admin/icons/flags/#{locale}.png"
|
|
= t(".#{locale}")
|
|
/
|
|
|
|
= render 'locomotive/shared/form_actions', :button_label => :update
|