summaryrefslogtreecommitdiffstats
path: root/app/views/account
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-22 13:17:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-22 13:17:49 +0000
commit827e998afef3a3b6eded98c9b3af1023e54fccb5 (patch)
treeec61e0b48f850b620454f95904781aeb1b0c4845 /app/views/account
parent43f583d33243b825ef493d2bebb200660835af48 (diff)
downloadredmine-827e998afef3a3b6eded98c9b3af1023e54fccb5.tar.gz
redmine-827e998afef3a3b6eded98c9b3af1023e54fccb5.zip
Application layout refactored.
The project menu is now the main menu. git-svn-id: http://redmine.rubyforge.org/svn/trunk@747 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r--app/views/account/login.rhtml57
-rw-r--r--app/views/account/lost_password.rhtml9
-rw-r--r--app/views/account/password_recovery.rhtml25
3 files changed, 43 insertions, 48 deletions
diff --git a/app/views/account/login.rhtml b/app/views/account/login.rhtml
index 08d462c61..5bfbfb8d6 100644
--- a/app/views/account/login.rhtml
+++ b/app/views/account/login.rhtml
@@ -1,28 +1,33 @@
-<center>
-<div class="box login">
-<h2 class="icon22 icon22-authent"><%=l(:label_please_login)%></h2>
-
-<% form_tag({:action=> "login"}, :class => "tabular") do %>
-
-<p><label for="login"><%=l(:field_login)%>:</label>
-<%= text_field_tag 'login', nil, :size => 25 %></p>
-
-<p><label for="password"><%=l(:field_password)%>:</label>
-<%= password_field_tag 'password', nil, :size => 25 %></p>
-
-<% if Setting.autologin? %>
-<p><label for="autologin"><%= check_box_tag 'autologin' %> <%= l(:label_stay_logged_in) %></label></p>
-<% end %>
-
-<p><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></p>
-<% end %>
+<div id="login-form">
+<% form_tag({:action=> "login"}) do %>
+<table>
+<tr>
+ <td align="right"><label for="login"><%=l(:field_login)%>:</label></td>
+ <td align="left"><p><%= text_field_tag 'login', nil, :size => 40 %></p></td>
+</tr>
+<tr>
+ <td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
+ <td align="left"><%= password_field_tag 'password', nil, :size => 40 %></td>
+</tr>
+<tr>
+ <td></td>
+ <td align="left">
+ <% if Setting.autologin? %>
+ <label for="autologin"><%= check_box_tag 'autologin' %> <%= l(:label_stay_logged_in) %></label>
+ <% end %>
+ </td>
+</tr>
+<tr>
+ <td align="left">
+ <% if Setting.lost_password? %>
+ <%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %>
+ <% end %>
+ </td>
+ <td align="right">
+ <input type="submit" name="login" value="<%=l(:button_login)%> &#187;" />
+ </td>
+</tr>
+</table>
<%= javascript_tag "Form.Element.focus('login');" %>
-
-<% links = []
- links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
- links << link_to(l(:label_password_lost), :action => 'lost_password') if Setting.lost_password?
-%>
-<%= links.join(" | ") %>
-
+<% end %>
</div>
-</center> \ No newline at end of file
diff --git a/app/views/account/lost_password.rhtml b/app/views/account/lost_password.rhtml
index b27123a6e..420e8f9b1 100644
--- a/app/views/account/lost_password.rhtml
+++ b/app/views/account/lost_password.rhtml
@@ -1,14 +1,11 @@
-<center>
-<div class="box login">
<h2><%=l(:label_password_lost)%></h2>
+<div class="box">
<% form_tag({:action=> "lost_password"}, :class => "tabular") do %>
<p><label for="mail"><%=l(:field_mail)%> <span class="required">*</span></label>
-<%= text_field_tag 'mail', nil, :size => 40 %></p>
-
-<p><center><%= submit_tag l(:button_submit) %></center></p>
+<%= text_field_tag 'mail', nil, :size => 40 %>
+<%= submit_tag l(:button_submit) %></p>
<% end %>
</div>
-</center> \ No newline at end of file
diff --git a/app/views/account/password_recovery.rhtml b/app/views/account/password_recovery.rhtml
index c3c451e57..439ab11b5 100644
--- a/app/views/account/password_recovery.rhtml
+++ b/app/views/account/password_recovery.rhtml
@@ -1,22 +1,15 @@
-<center>
-<div class="box login">
<h2><%=l(:label_password_lost)%></h2>
-<p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br />
-
<%= error_messages_for 'user' %>
- <% form_tag({:token => @token.value}, :class => "tabular") do %>
-
- <p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
- <%= password_field_tag 'new_password', nil, :size => 25 %><br />
- <em><%= l(:text_length_between, 4, 12) %></em></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>
+<% form_tag({:token => @token.value}) do %>
+<div class="box tabular">
+<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
+<%= password_field_tag 'new_password', nil, :size => 25 %><br />
+<em><%= l(:text_length_between, 4, 12) %></em></p>
- <p><center><%= submit_tag l(:button_save) %></center></p>
- <% end %>
-
+<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>
</div>
-</center> \ No newline at end of file
+<p><%= submit_tag l(:button_save) %></p>
+<% end %>