Merge commit 'refs/merge-requests/99' of gitorious.org:gitorious/mainline
[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                         <p class="openid-switch">Or log in with <a href="#" class"foo1">OpenID</a>.</p>
32                         <p class="regular-switch" style="display: none">Or log in with your <a href="#" class="foo2">regular account</a>.</p>
33                         <div class="horisontal-shadow"></div>
34                                 <div id="regular_login_fields">
35                                         <ul>
36                                                 <li>
37                                                          <label for="email"><%= t("views.sessions.label").call(self) %></label>
38                                                         <%= text_field_tag 'email', params[:email] %>
39                                                 </li>
40                                                 <li>
41                                                         <label for="password"><%= t("views.sessions.passwd") %></label>
42                                                         <%= password_field_tag 'password', '' %>
43                                                 </li>
44                                                 <li>
45                                                         <div class="tos">
46                                                                 <%= check_box_tag 'remember_me' %>
47                                                                 <label for="remember_me"><%= t("views.sessions.remember") %></label>
48                                                         </div>
49                                                         <div class="submit">
50                                                                 <%= submit_tag t("views.sessions.submit") %>
51                                                         </div>
52                                                 </li>
53                                         </ul>           
54                                 </div>
55                                 <div id="openid_login_fields" class="login_hidden">     
56                                         <ul>
57                                                 <li>
58                                                         <label for="openid"><%= t("views.sessions.openid").call(self) %></label>
59                                                         <%= text_field_tag 'openid_url', params[:openid_url] -%>
60                                                 </li>
61                                                 <li>
62                                                         <div class="tos">
63                                                                 <%= check_box_tag 'remember_me' %>
64                                                                 <label for="remember_me"><%= t("views.sessions.remember") %></label>
65                                                         </div>
66                                                         <div class="submit">
67                                                                 <%= submit_tag t("views.sessions.submit") %>
68                                                         </div>
69                                                 </li>
70                                         </ul>
71                                 </div>                                  
72         
73                         
74                                 
75                 </div><!-- end #log-in -->
76                 </div><!-- end form-wrapper -->
77         <% end -%> <!-- end form -->
78                 
79                 <p class="alt_links">
80             <small>
81             <% if GitoriousConfig['public_mode'] -%>
82               <%= link_to t("views.sessions.register"), new_user_path -%> 
83               &mdash;
84             <% end -%> 
85             <%= link_to t("views.sessions.forgot"), forgot_password_users_path -%>
86             </small>
87           </p>
88         </div>
89         
90
91
92 </div>
93