summaryrefslogtreecommitdiffstats
path: root/app/views/my/account.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my/account.rhtml')
-rw-r--r--app/views/my/account.rhtml47
1 files changed, 47 insertions, 0 deletions
diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml
new file mode 100644
index 000000000..23b236e29
--- /dev/null
+++ b/app/views/my/account.rhtml
@@ -0,0 +1,47 @@
+<h2><%=l(:label_my_account)%></h2>
+
+<p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br />
+<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>,
+<%=l(:field_updated_on)%>: <%= format_time(@user.updated_on) %></p>
+
+<%= error_messages_for 'user' %>
+
+<div class="box">
+<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>
+<% end %>
+</div>
+
+
+<% unless @user.auth_source_id %>
+ <div class="box">
+ <h3><%=l(:field_password)%></h3>
+
+ <%= start_form_tag({:action => 'change_password'}, :class => "tabular") %>
+
+ <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
+ <%= password_field_tag 'password', nil, :size => 25 %></p>
+
+ <p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
+ <%= password_field_tag 'new_password', nil, :size => 25 %></p>
+
+ <p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
+ <%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
+
+ <center><%= submit_tag l(:button_save) %></center>
+ <%= end_form_tag %>
+ </div>
+<% end %>