<%= link_to t("account.show.change_credentials_link"), edit_user_registration_path, class: 'button radius small secondary right' %> <% if current_user.level_three_verified? %> <%= t("account.show.level_three_user") %> <% elsif current_user.level_two_verified? %> <%= t("account.show.level_two_user") %> <% else %> <%= link_to "Verify my account", new_residence_path, class: 'button radius small secondary right' %> <% end %>

<%= 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, placeholder: t("account.show.organization_name_label") %> <% end %> <%= f.text_field :phone_number, placeholder: t("account.show.phone_number_label") %> <% else %> <%= f.text_field :username, placeholder: t("account.show.username_label") %> <% end %>

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

<%= avatar_image(@account, seed: @account.id, size: 100) %>

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

<%= f.check_box :email_on_debate_comment, label: false %> <%= t("account.show.email_on_debate_comment_label") %>
<%= f.check_box :email_on_comment_reply, label: false %> <%= t("account.show.email_on_comment_reply_label") %>
<%= f.submit t("account.show.save_changes_submit"), class: "button radius" %>
<% end %>