]> git.openstreetmap.org Git - rails.git/blob - app/views/accounts/show.html.erb
Remove nested .changesets from lists on history pages
[rails.git] / app / views / accounts / show.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "user" %>
3 <% end %>
4
5 <% content_for :heading do %>
6   <h1><%= t ".my_account" %></h1>
7 <% end %>
8
9 <%= render :partial => "settings_menu" %>
10
11 <%= bootstrap_form_for current_user, :url => { :action => :update }, :html => { :multipart => true, :id => "accountForm", :autocomplete => :off } do |f| %>
12
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" %>
18
19   <fieldset class="mb-3">
20     <label for="user_auth_provider" class="form-label"><%= t(".external auth") %></label>
21     <div class="row">
22       <%= f.select :auth_provider,
23                    Auth.providers.map { |provider| [I18n.t("auth.providers.#{provider}"), provider] },
24                    :include_blank => t("auth.providers.none"),
25                    :hide_label => true,
26                    :wrapper => { :class => "col-auto mb-0" } %>
27     </div>
28   </fieldset>
29
30   <div class="mb-3 d-flex flex-column flex-sm-row column-gap-1">
31     <label class="form-label text-nowrap mb-0"><%= t ".contributor terms.heading" %></label>
32     <span class="form-text text-body-secondary">
33       <% if current_user.terms_agreed? %>
34         <%= t ".contributor terms.agreed" %>
35         (<a href="<%= t ".contributor terms.link" %>" target="_new"><%= t ".contributor terms.link text" %></a>)
36         <br>
37         <% if current_user.consider_pd? %>
38           <%= t ".contributor terms.agreed_with_pd" %>
39         <% else %>
40           <%= t ".contributor terms.not_agreed_with_pd" %>
41           (<%= link_to t(".contributor terms.pd_link_text"), account_pd_declaration_path %>)
42         <% end %>
43       <% else %>
44         <%= t ".contributor terms.not yet agreed" %>
45         <%= link_to t(".contributor terms.review link text"), account_terms_path %>
46       <% end %>
47     </span>
48   </div>
49
50   <div class="row justify-content-between g-1">
51     <div class="col-auto">
52       <%= f.primary t(".save changes button") %>
53     </div>
54     <div class="col-auto">
55       <%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
56     </div>
57   </div>
58 <% end %>
59
60 <% unless current_user.data_public? %>
61   <%= render :partial => "go_public" %>
62 <% end %>