2010-07-13 23:37:02 +00:00
|
|
|
- title link_to(@account.name.blank? ? @account.name_was : @account.name, '#', :rel => 'my_account_name', :title => t('.ask_for_name'), :class => 'editable')
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2010-07-15 20:48:02 +00:00
|
|
|
- content_for :head do
|
2010-12-14 17:00:12 +00:00
|
|
|
= include_javascripts :account
|
2010-07-15 20:48:02 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
- content_for :submenu do
|
|
|
|
= render 'admin/shared/menu/settings'
|
|
|
|
|
2011-04-03 23:59:41 +00:00
|
|
|
- if multi_sites?
|
2011-04-01 00:34:19 +00:00
|
|
|
- content_for :buttons do
|
2011-06-26 23:02:48 +00:00
|
|
|
= admin_button_tag t('.new_site'), new_admin_site_url, :class => 'new' if can?(:manage, Site)
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2010-07-23 23:06:54 +00:00
|
|
|
%p= t('.help')
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2010-07-13 20:01:40 +00:00
|
|
|
= semantic_form_for @account, :as => :my_account, :url => admin_my_account_url, :html => { :class => 'save-with-shortcut' } do |f|
|
2010-05-10 22:39:52 +00:00
|
|
|
|
|
|
|
= f.foldable_inputs :name => :information, :style => 'display: none' do
|
|
|
|
= f.input :name
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
= f.foldable_inputs :name => :credentials do
|
|
|
|
= f.input :email
|
2011-03-04 23:29:40 +00:00
|
|
|
= f.input :password, :input_html => { :autocomplete => "off" }
|
|
|
|
= f.input :password_confirmation, :input_html => { :autocomplete => "off" }
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-04-05 00:18:17 +00:00
|
|
|
- if multi_sites?
|
|
|
|
= f.foldable_inputs :name => :sites, :class => 'sites off' do
|
|
|
|
- @account.sites.each do |site|
|
|
|
|
%li{ :class => 'item' }
|
2011-04-24 23:21:38 +00:00
|
|
|
%strong= link_to site.name, site_url(site)
|
2011-04-05 00:18:17 +00:00
|
|
|
%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
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
= 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
|
2010-07-23 23:06:54 +00:00
|
|
|
%label
|
|
|
|
= image_tag "admin/icons/flags/#{locale}.png"
|
|
|
|
= f.radio_button :locale, locale
|
|
|
|
|
|
|
|
= t(".#{locale}")
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
= render 'admin/shared/form_actions', :button_label => :update
|