Merge remote branch 'omk-redesign-bundle/master' into redesign
[gitorious:gitorious-fiit-mainline.git] / app / views / sessions / new.html.erb
1 <%
2 #--
3 #   Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
4 #   Copyright (C) 2007, 2008 Johan Sørensen <johan@johansorensen.com>
5 #   Copyright (C) 2008 Patrick Aljord <patcito@gmail.com>
6 #   Copyright (C) 2008 Tor Arne Vestbø <tavestbo@trolltech.com>
7 #   Copyright (C) 2009 Fabio Akita <fabio.akita@gmail.com>
8 #
9 #   This program is free software: you can redistribute it and/or modify
10 #   it under the terms of the GNU Affero General Public License as published by
11 #   the Free Software Foundation, either version 3 of the License, or
12 #   (at your option) any later version.
13 #
14 #   This program is distributed in the hope that it will be useful,
15 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 #   GNU Affero General Public License for more details.
18 #
19 #   You should have received a copy of the GNU Affero General Public License
20 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 #++
22 %>
23
24 <div id="content">
25
26   <%= login_method %>
27   <% form_tag sessions_path  do -%>
28         <div class="form-wrapper" id="login">
29                 <div id="log-in">
30                 <h1>Log in to Gitorious</h1>
31                         <div class="horisontal-shadow"></div>
32                                 <div id="regular_login_fields">
33                                         <ul>
34                                                 <li>
35                                                          <label for="email"><%= t("views.sessions.label").call(self) %></label>
36                                                         <%= text_field_tag 'email', params[:email] %>
37                                                 </li>
38                                                 <li>
39                                                         <label for="password"><%= t("views.sessions.passwd") %></label>
40                                                         <%= password_field_tag 'password', '' %>
41                                                 </li>
42                                                 <li>
43                                                         <div class="tos">
44                                                                 <%= check_box_tag 'remember_me' %>
45                                                                 <label for="remember_me"><%= t("views.sessions.remember") %>:</label>
46                                                         </div>
47                                                         <div class="submit">
48                                                                 <%= submit_tag t("views.sessions.submit") %>
49                                                         </div>
50                                                 </li>
51                                         </ul>           
52                                 </div>
53                                 <div id="openid_login_fields" class="login_hidden">     
54                                         <ul>
55                                                 <li>
56                                                         <label for="openid"><%= t("views.sessions.openid").call(self) %></label>
57                                                         <%= text_field_tag 'openid_url', params[:openid_url] -%>
58                                                 </li>
59                                                 <li>
60                                                         <div class="tos">
61                                                                 <%= check_box_tag 'remember_me' %>
62                                                                 <label for="remember_me"><%= t("views.sessions.remember") %></label>
63                                                         </div>
64                                                         <div class="submit">
65                                                                 <%= submit_tag t("views.sessions.submit") %>
66                                                         </div>
67                                                 </li>
68                                         </ul>
69                                 </div>                                  
70         
71                         
72                                 
73                 </div><!-- end #log-in -->
74                 </div><!-- end form-wrapper>
75         <% end -%> <!-- end form -->
76                 
77                 <p class="alt_links">
78             <small>
79             <% if GitoriousConfig['public_mode'] -%>
80               <%= link_to t("views.sessions.register"), new_user_path -%> 
81               &mdash;
82             <% end -%> 
83             <%= link_to t("views.sessions.forgot"), forgot_password_users_path -%>
84             </small>
85           </p>
86         </div>
87         
88
89
90 </div>
91