.settings ng-controller='SettingsController' = render partial: 'account/submenu' .cabinet_subnav .cabinet_subnav_active span = @group.title ul - ProfilePageType.enabled.each do |page_type| li class="#{'active' if @group.id == page_type.id}" = link_to_unless_current_span page_type.title, edit_account_profile_path(page_type: page_type.slug) .content ng-form="forms.profileForm" - case @group - when ProfilePageType.billing / Billing = render partial: 'fields_billing' - when ProfilePageType.mailing / Mailing = render partial: 'fields_mailing' - else / About me = render partial: 'fields_about' = render partial: 'popups' = render partial: 'account/profiles/gdpr/panel' if feature_enabled?(:gdpr) = content_for :javascript = javascript_include_tag 'account/profile' coffee: document.addEventListener 'DOMContentLoaded', -> Profile.init()