source: OpenWorkouts-current/ow/templates/login.pt @ 5ec3a0b

currentfeature/docs
Last change on this file since 5ec3a0b was 5ec3a0b, checked in by borja <borja@…>, 5 years ago

Imported sources from the old python2-only repository:

  • Modified the code so it is python 3.6 compatible
  • Fixed deprecation warnings, pyramid 1.10.x supported now
  • Fixed deprecation warnings about some libraries, like pyramid-simpleform
  • Added pytest-pycodestyle and pytest-flakes for automatic checks on the source code files when running tests.
  • Added default pytest.ini setup to enforce some default parameters when running tests.
  • Cleaned up the code a bit, catched up with tests coverage.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xml:lang="en"
3      xmlns:tal="http://xml.zope.org/namespaces/tal"
4      xmlns:metal="http://xml.zope.org/namespaces/metal"
5      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
6      i18n:domain="OpenWorkouts"
7      metal:use-macro="load: base_anonymous.pt"
8      tal:attributes="lang request.locale_name">
9
10  <metal:content metal:fill-slot="content">
11
12      <!-- Login -->
13
14      <div class="login-content">
15
16        <form method="post" name="login" action="">
17
18          <input type="hidden" name="return_to" value=""
19                 tal:attributes="value redirect_url">
20
21          <div id="messages" class="message message-error"
22               tal:content="message" tal:condition="message != ''"></div>
23
24          <fieldset>
25            <div>
26              <label for="username" i18n:translate="">Username</label>
27              <input placeholder="Your username..." type="text" name="username"
28                     value="" i18n:attributes="placeholder"
29                     tal:attributes="value username">
30            </div>
31            <div>
32              <label for="password" i18n:translate="">Password</label>
33              <input placeholder="Your password..." name="password"
34                     type="password" i18n:attributes="placeholder">
35            </div>
36            <input class="button" type="submit" name="submit" value="Login">
37            <a class="login-remember" href="#" i18n:translate="">
38              Forgot your password?</a> |
39            <a class="join-now" href="" i18n:translate=""
40               tal:attributes="href request.resource_url(context, 'signup')">
41              Join now!</a>
42
43          </fieldset>
44
45        </form>
46
47      </div>
48
49  </metal:content>
50
51</html>
Note: See TracBrowser for help on using the repository browser.