##// END OF EJS Templates
Restored error messages on my account....
Jean-Philippe Lang -
r6046:5b648a7daed9
parent child
Show More
@@ -1,50 +1,51
1 1 <div class="contextual">
2 2 <%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
3 3 <%= call_hook(:view_my_account_contextual, :user => @user)%>
4 4 </div>
5 5
6 6 <h2><%=l(:label_my_account)%></h2>
7 <%= error_messages_for 'user' %>
7 8
8 9 <% form_for :user, @user, :url => { :action => "account" },
9 10 :builder => TabularFormBuilder,
10 11 :lang => current_language,
11 12 :html => { :id => 'my_account_form' } do |f| %>
12 13 <div class="splitcontentleft">
13 14 <fieldset class="box tabular">
14 15 <legend><%=l(:label_information_plural)%></legend>
15 16 <p><%= f.text_field :firstname, :required => true %></p>
16 17 <p><%= f.text_field :lastname, :required => true %></p>
17 18 <p><%= f.text_field :mail, :required => true %></p>
18 19 <p><%= f.select :language, lang_options_for_select %></p>
19 20 <% if Setting.openid? %>
20 21 <p><%= f.text_field :identity_url %></p>
21 22 <% end %>
22 23
23 24 <% @user.custom_field_values.select(&:editable?).each do |value| %>
24 25 <p><%= custom_field_tag_with_label :user, value %></p>
25 26 <% end %>
26 27 <%= call_hook(:view_my_account, :user => @user, :form => f) %>
27 28 </fieldset>
28 29
29 30 <%= submit_tag l(:button_save) %>
30 31 </div>
31 32
32 33 <div class="splitcontentright">
33 34 <fieldset class="box">
34 35 <legend><%=l(:field_mail_notification)%></legend>
35 36 <%= render :partial => 'users/mail_notifications' %>
36 37 </fieldset>
37 38
38 39 <fieldset class="box tabular">
39 40 <legend><%=l(:label_preferences)%></legend>
40 41 <%= render :partial => 'users/preferences' %>
41 42 </fieldset>
42 43
43 44 </div>
44 45 <% end %>
45 46
46 47 <% content_for :sidebar do %>
47 48 <%= render :partial => 'sidebar' %>
48 49 <% end %>
49 50
50 51 <% html_title(l(:label_my_account)) -%>
General Comments 0
You need to be logged in to leave comments. Login now