account.rhtml
52 lines
| 1.9 KiB
| text/html+ruby
|
RhtmlLexer
|
r10 | <h2><%=l(:label_my_account)%></h2> | ||
|
r330 | |||
|
r666 | <p><%=l(:field_login)%>: <strong><%= @user.login %></strong> | ||
<br /><%=l(:field_created_on)%>: <%= format_time(@user.created_on) %> | ||||
<% if @user.rss_token %> | ||||
<br /><%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_token.created_on)) %> | ||||
(<%= link_to l(:button_reset), {:action => 'reset_rss_key'}, :method => :post %>) | ||||
<% end %> | ||||
</p> | ||||
|
r5 | |||
<%= error_messages_for 'user' %> | ||||
|
r330 | |||
<div class="box"> | ||||
|
r64 | <h3><%=l(:label_information_plural)%></h3> | ||
<% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %> | ||||
<p><%= f.text_field :firstname, :required => true %></p> | ||||
<p><%= f.text_field :lastname, :required => true %></p> | ||||
<p><%= f.text_field :mail, :required => true, :size => 40 %></p> | ||||
<p><%= f.select :language, lang_options_for_select %></p> | ||||
<p><%= f.check_box :mail_notification %></p> | ||||
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> | ||||
<p><%= pref_fields.check_box :hide_mail %></p> | ||||
<% end %> | ||||
<center><%= submit_tag l(:button_save) %></center> | ||||
|
r330 | <% end %> | ||
</div> | ||||
|
r19 | |||
|
r330 | <% unless @user.auth_source_id %> | ||
<div class="box"> | ||||
<h3><%=l(:field_password)%></h3> | ||||
|
r15 | |||
|
r181 | <% form_tag({:action => 'change_password'}, :class => "tabular") do %> | ||
|
r330 | |||
|
r19 | <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label> | ||
|
r5 | <%= password_field_tag 'password', nil, :size => 25 %></p> | ||
|
r330 | |||
|
r19 | <p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label> | ||
|
r397 | <%= password_field_tag 'new_password', nil, :size => 25 %><br /> | ||
<em><%= l(:text_length_between, 4, 12) %></em></p> | ||||
|
r330 | |||
|
r19 | <p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label> | ||
|
r330 | <%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p> | ||
|
r2 | |||
|
r10 | <center><%= submit_tag l(:button_save) %></center> | ||
|
r330 | <% end %> | ||
|
r12 | </div> | ||
|
r330 | <% end %> | ||