<%= link_to t("account.show.change_credentials_link"), edit_user_registration_path, class: "button secondary" %>
<%= link_to t("account.show.erase_account_link"), users_registrations_delete_form_path, class: "delete" %>
<%= avatar_image(@account, seed: @account.id, size: 100, class: "margin-bottom") %>

<%= t("account.show.title") %>

<%= form_for @account, as: :account, url: account_path do |f| %> <%= render "shared/errors", resource: @account %>

<%= t("account.show.personal")%>

<% if @account.organization? %> <%= f.fields_for :organization do |fo| %> <%= fo.text_field :name, autofocus: true, maxlength: Organization.name_max_length, placeholder: t("account.show.organization_name_label") %> <%= fo.text_field :responsible_name, autofocus: true, maxlength: Organization.responsible_name_max_length, placeholder: t("account.show.organization_responsible_name_placeholder") %> <% end %> <%= f.text_field :phone_number, placeholder: t("account.show.phone_number_label") %> <% else %> <%= f.text_field :username, maxlength: User.username_max_length, placeholder: t("account.show.username_label") %> <% end %>
<%= f.label :public_activity do %> <%= f.check_box :public_activity, title: t('account.show.public_activity_label'), label: false %> <%= t("account.show.public_activity_label") %> <% end %>
<% if @account.email.present? %>

<%= t("account.show.notifications")%>

<%= f.label :email_on_comment do %> <%= f.check_box :email_on_comment, title: t('account.show.email_on_comment_label'), label: false %> <%= t("account.show.email_on_comment_label") %> <% end %>
<%= f.label :email_on_comment_reply do %> <%= f.check_box :email_on_comment_reply, title: t('account.show.email_on_comment_reply_label'), label: false %> <%= t("account.show.email_on_comment_reply_label") %> <% end %>
<%= f.label :email_newsletter_subscribed do %> <%= f.check_box :newsletter, title: t('account.show.subscription_to_website_newsletter_label'), label: false %> <%= t("account.show.subscription_to_website_newsletter_label") %> <% end %>
<%= f.label :email_digest do %> <%= f.check_box :email_digest, title: t('account.show.email_digest_label'), label: false %> <%= t("account.show.email_digest_label") %> <% end %>
<%= f.label :email_on_direct_message do %> <%= f.check_box :email_on_direct_message, title: t('account.show.email_on_direct_message_label'), label: false %> <%= t("account.show.email_on_direct_message_label") %> <% end %>
<% end %> <% if @account.official_level == 1 %>
<%= f.label :official_position_badge do %> <%= f.check_box :official_position_badge, title: t('account.show.official_position_badge_label'), label: false %> <%= t("account.show.official_position_badge_label") %> <% end %>
<% end %> <%= f.submit t("account.show.save_changes_submit"), class: "button" %>

<%= t("account.show.user_permission_title") %>

<%= t("account.show.user_permission_info") %>

  •  <%= t("account.show.user_permission_debates") %>
  •  <%= t("account.show.user_permission_proposal") %>
  • <% if current_user.level_two_or_three_verified? %> <% else %> <% end %> <%= t("account.show.user_permission_support_proposal") %>
  • <% if current_user.level_three_verified? %> <% else %> <% end %> <%= t("account.show.user_permission_votes") %>

<%= t("account.show.user_permission_verify_info") %>
<%= t("account.show.user_permission_verify") %>

<% unless @account.organization? %>
<% end %>
<% end %>