<% content_for :head do %> <%= javascript_include_tag "user" %> <% end %> <% content_for :heading do %>

<%= t ".my_account" %>

<% end %> <%= render :partial => "settings_menu" %> <%= bootstrap_form_for current_user, :url => { :action => :update }, :html => { :multipart => true, :id => "accountForm", :autocomplete => :off } do |f| %> <%= f.text_field :display_name %> <%= f.email_field :email, :disabled => true, :label => t(".current email address") %> <%= f.email_field :new_email, :autocomplete => "email" %> <%= f.password_field :pass_crypt, :value => "", :autocomplete => "new-password" %> <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => "new-password" %>
<%= f.select :auth_provider, Auth.providers.map { |provider| [I18n.t("auth.providers.#{provider}"), provider] }, :include_blank => t("auth.providers.none"), :hide_label => true, :wrapper => { :class => "col-auto mb-0" } %>
<%= f.primary t(".save changes button") %>
<%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
<% end %>

<%= t ".contributor_terms.heading" %>

<% if current_user.terms_agreed? %> <%= t ".contributor_terms.agreed", :date => l(@current_user.terms_agreed.to_date, :format => :long) %> <% else %> <%= t ".contributor_terms.not_agreed" %> <% end %>
<% if current_user.consider_pd? %> <%= t ".contributor_terms.agreed_with_pd" %> <% else %> <%= t ".contributor_terms.not_agreed_with_pd" %> <% end %>
<%= link_to current_user.terms_agreed? ? t(".contributor_terms.review") : t(".contributor_terms.review_and_accept"), account_terms_path %> <% unless current_user.consider_pd? %> · <%= link_to t(".contributor_terms.consider_pd"), account_pd_declaration_path %> <% end %>

<%= t ".terms_of_use.heading" %>

<% if current_user.tou_agreed? %> <%= t ".terms_of_use.agreed", :date => l(@current_user.tou_agreed.to_date, :format => :long) %> <% else %> <%= t ".terms_of_use.not_agreed" %> <% end %>
<%= link_to current_user.tou_agreed? ? t(".terms_of_use.review") : t(".terms_of_use.review_and_accept"), account_terms_path %>
<% unless current_user.data_public? %> <%= render :partial => "go_public" %> <% end %>