X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56fd5c4d90c7d3757fb97ff16c40aaa307ae1d22..e2367194b7dbfd1f149c94c59b33702b43c2996c:/app/views/user/account.html.erb diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 0a2f056c2..92b3407bf 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -1,13 +1,17 @@ +<% content_for :head do %> + <%= javascript_include_tag "user" %> +<% end %> + <% content_for :heading do %> -

<%= t 'user.account.my settings' %>

+

<%= t 'user.account.my settings' %>

<% end %> -<%= error_messages_for 'user' %> -<%= form_for :user, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %> +<%= error_messages_for current_user %> +<%= form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>
@@ -18,7 +22,7 @@
- + <%= t 'user.account.email never displayed publicly' %>
@@ -43,8 +47,9 @@
- - <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> + + <%= f.select :auth_provider, Auth::PROVIDERS %> + <%= f.text_field :auth_uid %> (<%= t 'user.account.openid.link text' %>)
@@ -53,7 +58,7 @@
- <% if @user.data_public? %> + <% if current_user.data_public? %> <%= t 'user.account.public editing.enabled' %> (<%= t 'user.account.public editing.enabled link text' %>) <% else %> @@ -66,10 +71,10 @@
- <% if @user.terms_agreed? %> + <% if current_user.terms_agreed? %> <%= t 'user.account.contributor terms.agreed' %> (<%= t 'user.account.contributor terms.link text' %>) - <% if @user.consider_pd? %> + <% if current_user.consider_pd? %> <%= t 'user.account.contributor terms.agreed_with_pd' %> <% end %> <% else %> @@ -87,7 +92,7 @@
- <%= richtext_area :user, :description %> + <%= richtext_area :user, :description, :object => current_user, :cols => 80, :rows => 20 %>
@@ -97,21 +102,21 @@
- <%= user_image @user %> + <%= user_image current_user %>
    - <% if @user.image.file? %> + <% if current_user.image.file? %>
  • - <%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %> + <%= radio_button_tag "image_action", "keep", !current_user.image_use_gravatar %>
  • <% end %> - <% if @user.image.file? || @user.image_use_gravatar? %> + <% if current_user.image.file? || current_user.image_use_gravatar? %>
  • <%= radio_button_tag "image_action", "delete" %>
  • <% end %> - <% if @user.image.file? %> + <% if current_user.image.file? %>
  • <%= radio_button_tag "image_action", "new" %>
  • <% end %>
  • - <%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %> + <%= radio_button_tag "image_action", "gravatar", current_user.image_use_gravatar %>