You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

account.html.erb 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="contextual">
  2. <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
  3. <%= call_hook(:view_my_account_contextual, :user => @user)%>
  4. </div>
  5. <h2><%=l(:label_my_account)%></h2>
  6. <%= error_messages_for 'user' %>
  7. <%= labelled_form_for :user, @user,
  8. :url => { :action => "account" },
  9. :html => { :id => 'my_account_form',
  10. :method => :post } do |f| %>
  11. <div class="splitcontentleft">
  12. <fieldset class="box tabular">
  13. <legend><%=l(:label_information_plural)%></legend>
  14. <p><%= f.text_field :firstname, :required => true %></p>
  15. <p><%= f.text_field :lastname, :required => true %></p>
  16. <p><%= f.text_field :mail, :required => true %></p>
  17. <p><%= f.select :language, lang_options_for_select %></p>
  18. <% if Setting.openid? %>
  19. <p><%= f.text_field :identity_url %></p>
  20. <% end %>
  21. <% @user.custom_field_values.select(&:editable?).each do |value| %>
  22. <p><%= custom_field_tag_with_label :user, value %></p>
  23. <% end %>
  24. <%= call_hook(:view_my_account, :user => @user, :form => f) %>
  25. </fieldset>
  26. <%= submit_tag l(:button_save) %>
  27. </div>
  28. <div class="splitcontentright">
  29. <fieldset class="box">
  30. <legend><%=l(:field_mail_notification)%></legend>
  31. <%= render :partial => 'users/mail_notifications' %>
  32. </fieldset>
  33. <fieldset class="box tabular">
  34. <legend><%=l(:label_preferences)%></legend>
  35. <%= render :partial => 'users/preferences' %>
  36. </fieldset>
  37. </div>
  38. <% end %>
  39. <% content_for :sidebar do %>
  40. <%= render :partial => 'sidebar' %>
  41. <% end %>
  42. <% html_title(l(:label_my_account)) -%>