2011-12-02 00:43:49 +00:00
|
|
|
- title link_to(@account.name.blank? ? @account.name_was : @account.name, '#', :rel => 'account_name', :title => t('.ask_for_name'), :class => 'editable')
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-12-01 23:04:45 +00:00
|
|
|
- content_for :backbone_view_data do
|
|
|
|
:plain
|
2012-02-02 15:53:26 +00:00
|
|
|
account: #{@account.to_json}
|
2010-07-15 20:48:02 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
- content_for :submenu do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render_cell 'locomotive/settings_menu', :show
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-04-03 23:59:41 +00:00
|
|
|
- if multi_sites?
|
2011-04-01 00:34:19 +00:00
|
|
|
- content_for :buttons do
|
2011-11-08 14:34:25 +00:00
|
|
|
= local_action_button t('.new_site'), new_site_url, :class => 'new' if can?(:create, Locomotive::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
|
|
|
|
2011-12-01 23:04:45 +00:00
|
|
|
= semantic_form_for @account, :url => my_account_url do |f|
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-11-28 14:40:25 +00:00
|
|
|
= f.inputs :name => :information do
|
2010-05-10 22:39:52 +00:00
|
|
|
= f.input :name
|
2011-12-01 23:04:45 +00:00
|
|
|
= f.input :locale, :as => '::Locomotive::Locale'
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-12-01 23:04:45 +00:00
|
|
|
= f.inputs :name => :credentials, :class => "inputs foldable folded" do
|
2010-05-10 22:39:52 +00:00
|
|
|
= f.input :email
|
2011-12-01 23:04:45 +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?
|
2011-12-02 00:43:49 +00:00
|
|
|
= f.inputs :name => :sites, :class => "sites inputs foldable" do
|
|
|
|
%li#account_sites_input.input.empty.no-label.last
|
2011-12-01 23:04:45 +00:00
|
|
|
.list
|
|
|
|
- @account.sites.each do |site|
|
|
|
|
.entry
|
2011-12-02 00:43:49 +00:00
|
|
|
%strong= link_to site.name, switch_to_site_url(site)
|
2011-12-01 23:04:45 +00:00
|
|
|
%em= site.domains.join(', ')
|
|
|
|
|
|
|
|
- if admin_on?(site) && site != current_site
|
|
|
|
%span{ :class => 'actions' }
|
2011-12-02 00:43:49 +00:00
|
|
|
= link_to 'x', site_url(site), :class => 'remove', :confirm => t('locomotive.messages.confirm'), :method => :delete
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/form_actions', :button_label => :update
|