##// END OF EJS Templates
Rails3: view: use explicit post method at my/account.html.erb...
Toshi MARUYAMA -
r8361:737655cebc51
parent child
Show More
@@ -1,49 +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 7 <%= error_messages_for 'user' %>
8 8
9 <% labelled_form_for :user, @user, :url => { :action => "account" },
10 :html => { :id => 'my_account_form' } do |f| %>
9 <% labelled_form_for :user, @user,
10 :url => { :action => "account" },
11 :html => { :id => 'my_account_form',
12 :method => :post } do |f| %>
11 13 <div class="splitcontentleft">
12 14 <fieldset class="box tabular">
13 15 <legend><%=l(:label_information_plural)%></legend>
14 16 <p><%= f.text_field :firstname, :required => true %></p>
15 17 <p><%= f.text_field :lastname, :required => true %></p>
16 18 <p><%= f.text_field :mail, :required => true %></p>
17 19 <p><%= f.select :language, lang_options_for_select %></p>
18 20 <% if Setting.openid? %>
19 21 <p><%= f.text_field :identity_url %></p>
20 22 <% end %>
21 23
22 24 <% @user.custom_field_values.select(&:editable?).each do |value| %>
23 25 <p><%= custom_field_tag_with_label :user, value %></p>
24 26 <% end %>
25 27 <%= call_hook(:view_my_account, :user => @user, :form => f) %>
26 28 </fieldset>
27 29
28 30 <%= submit_tag l(:button_save) %>
29 31 </div>
30 32
31 33 <div class="splitcontentright">
32 34 <fieldset class="box">
33 35 <legend><%=l(:field_mail_notification)%></legend>
34 36 <%= render :partial => 'users/mail_notifications' %>
35 37 </fieldset>
36 38
37 39 <fieldset class="box tabular">
38 40 <legend><%=l(:label_preferences)%></legend>
39 41 <%= render :partial => 'users/preferences' %>
40 42 </fieldset>
41 43
42 44 </div>
43 45 <% end %>
44 46
45 47 <% content_for :sidebar do %>
46 48 <%= render :partial => 'sidebar' %>
47 49 <% end %>
48 50
49 51 <% html_title(l(:label_my_account)) -%>
General Comments 0
You need to be logged in to leave comments. Login now