Sha256: eb31c6c151da9a77b77bb426220b488de9e12130b3278398119873a59d806891

Contents?: true

Size: 1.57 KB

Versions: 18

Compression:

Stored size: 1.57 KB

Contents

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

- content_for :backbone_view_data do
  :plain
    account: #{escape_json to_json(@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_path, icon: 'icon-plus' if can?(:create, Locomotive::Site)

%p= t('.help')

= semantic_form_for @account, url: my_account_path do |f|

  = f.inputs name: :information do
    = f.input :name
    = f.input :locale, as: '::Locomotive::Locale'

  = f.inputs name: :credentials, class: "inputs foldable folded" do
    = f.input :email
    = f.input :password, input_html: { autocomplete: 'off' }
    = f.input :password_confirmation, input_html: { autocomplete: 'off' }
    = f.input :api_key, as: '::Locomotive::ApiKey', url: regenerate_api_key_my_account_path

  - if multi_sites?
    = f.inputs name: :sites, class: "sites inputs foldable" do
      %li#account_sites_input.input.empty.no-label.last
        .list
          - @account.sites.each do |site|
            .entry
              %strong= link_to site.name, switch_to_site_url(site)
              %em= site.domains.join(', ')

              - if admin_on?(site) && site != current_site
                %span{ class: 'actions' }
                  = link_to_icon :trash, site_url(site), class: 'remove', data: { confirm: t('locomotive.messages.confirm') }, method: :delete

  = render 'locomotive/shared/form_actions', button_label: :update

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.6 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.5 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.4 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.3 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.2 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.1 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.0 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.4.1 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.4.0 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.3.1 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.3.0 app/views/locomotive/my_account/edit.html.haml
locomotive_cms-2.2.3 app/views/locomotive/my_account/edit.html.haml