1 <% content_for :head do %>
 
   2   <%= javascript_include_tag "user" %>
 
   5 <% content_for :heading do %>
 
   6   <h1><%= t ".my_account" %></h1>
 
   9 <%= render :partial => "settings_menu" %>
 
  11 <%= bootstrap_form_for current_user, :url => { :action => :update }, :html => { :multipart => true, :id => "accountForm", :autocomplete => :off } do |f| %>
 
  13   <%= f.text_field :display_name %>
 
  14   <%= f.email_field :email, :disabled => true, :label => t(".current email address") %>
 
  15   <%= f.email_field :new_email, :autocomplete => "email" %>
 
  16   <%= f.password_field :pass_crypt, :value => "", :autocomplete => "new-password" %>
 
  17   <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => "new-password" %>
 
  19   <fieldset class="mb-3">
 
  20     <label for="user_auth_provider" class="form-label"><%= t(".external auth") %></label>
 
  22       <%= f.select :auth_provider,
 
  23                    Auth.providers.map { |provider| [I18n.t("auth.providers.#{provider}"), provider] },
 
  24                    :include_blank => t("auth.providers.none"),
 
  26                    :wrapper => { :class => "col-auto mb-0" } %>
 
  27       <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
 
  29     <small class="form-text text-body-secondary">(<a href="<%= t ".openid.link" %>" target="_new"><%= t ".openid.link text" %></a>)</small>
 
  32   <div class="mb-3 d-flex flex-column flex-sm-row column-gap-1">
 
  33     <label class="form-label text-nowrap mb-0"><%= t ".contributor terms.heading" %></label>
 
  34     <span class="form-text text-body-secondary">
 
  35       <% if current_user.terms_agreed? %>
 
  36         <%= t ".contributor terms.agreed" %>
 
  37         (<a href="<%= t ".contributor terms.link" %>" target="_new"><%= t ".contributor terms.link text" %></a>)
 
  39         <% if current_user.consider_pd? %>
 
  40           <%= t ".contributor terms.agreed_with_pd" %>
 
  42           <%= t ".contributor terms.not_agreed_with_pd" %>
 
  43           (<%= link_to t(".contributor terms.pd_link_text"), account_pd_declaration_path %>)
 
  46         <%= t ".contributor terms.not yet agreed" %>
 
  47         <%= link_to t(".contributor terms.review link text"), account_terms_path %>
 
  52   <div class="row justify-content-between g-1">
 
  53     <div class="col-auto">
 
  54       <%= f.primary t(".save changes button") %>
 
  56     <div class="col-auto">
 
  57       <%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
 
  62 <% unless current_user.data_public? %>
 
  63   <%= render :partial => "go_public" %>