1 <% content_for :head do %>
2 <%= javascript_include_tag "user" %>
5 <% content_for :heading do %>
6 <h1><%= t ".my settings" %></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="form-group">
20 <label for="user_auth_provider" class="form-label"><%= t(".external auth") %></label>
22 <%= f.select(:auth_provider, Auth.providers, :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %>
23 <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
25 <small class="form-text text-muted">(<a href="<%= t ".openid.link" %>" target="_new"><%= t ".openid.link text" %></a>)</small>
28 <div class="form-group">
29 <label class="form-label"><%= t ".public editing.heading" %></label>
30 <span class="form-text text-muted">
31 <% if current_user.data_public? %>
32 <%= t ".public editing.enabled" %>
33 (<a href="<%= t ".public editing.enabled link" %>" target="_new"><%= t ".public editing.enabled link text" %></a>)
35 <%= t ".public editing.disabled" %>
36 (<a href="#public"><%= t ".public editing.disabled link text" %></a>)
41 <div class="form-group">
42 <label class="form-label"><%= t ".contributor terms.heading" %></label>
43 <span class="form-text text-muted">
44 <% if current_user.terms_agreed? %>
45 <%= t ".contributor terms.agreed" %>
46 (<a href="<%= t ".contributor terms.link" %>" target="_new"><%= t ".contributor terms.link text" %></a>)
47 <% if current_user.consider_pd? %>
48 <%= t ".contributor terms.agreed_with_pd" %>
51 <%= t ".contributor terms.not yet agreed" %>
52 <%= link_to t(".contributor terms.review link text"), :controller => "users", :action => "terms" %>
57 <div class="row justify-content-between">
58 <div class="col-auto btn-wrapper">
59 <%= f.primary t(".save changes button") %>
61 <div class="col-auto btn-wrapper">
62 <%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
67 <% unless current_user.data_public? %>
69 <h2><%= t ".public editing note.heading" %></h2>
70 <%= t ".public editing note.html" %>
71 <%= button_to t(".make edits public button"), user_go_public_path, :class => "btn btn-primary" %>