X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..de344eea836d0694dead47508f114bb5a369eca2:/app/views/accounts/edit.html.erb diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index 0dcab17b0..a3e6f943b 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -16,18 +16,18 @@ <%= 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, :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %> +
+ +
+ <%= f.select(:auth_provider, { t("auth.providers.none") => "" }.merge(Auth.providers), :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %> <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
- (" target="_new"><%= t ".openid.link text" %>) + (" target="_new"><%= t ".openid.link text" %>)
-
- - +
+ + <% if current_user.data_public? %> <%= t ".public editing.enabled" %> (" target="_new"><%= t ".public editing.enabled link text" %>) @@ -38,9 +38,9 @@
-
- - +
+ + <% if current_user.terms_agreed? %> <%= t ".contributor terms.agreed" %> (" target="_new"><%= t ".contributor terms.link text" %>) @@ -54,12 +54,16 @@
- <%= f.primary t(".save changes button") %> +
+
+ <%= f.primary t(".save changes button") %> +
+
+ <%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %> +
+
<% end %> <% unless current_user.data_public? %> - -

<%= t ".public editing note.heading" %>

-<%= t ".public editing note.html" %> - <%= button_to t(".make edits public button"), user_go_public_path %> + <%= render :partial => "go_public" %> <% end %>