Statistics
| Branch: | Tag: | Revision:

root / pithos / im / templates / index.html @ c08d0b66

History | View | Annotate | Download (2.4 kB)

1
{% extends 'local_base.html'%}
2

    
3
{% block title%}
4
        <h2>Welcome</h2>
5
        <p>Choose how to login. Or move on to <a href="admin">admin</a>.</p>
6
{% endblock title%}
7
    
8
{% block body%}
9
    <div class="row">
10
    {% if "local" in standard_modules %}
11
      <div class="span4">
12
        <h4>Local account</h4>
13
        <form action="{% url pithos.im.target.local.login %}" method="post" class="form-stacked">
14
          <fieldset>
15
            <div class="clearfix">
16
              <label for="username">Username:</label>
17
              <div class="input">
18
                <input class="span3" id="user-username" name="username" type="text" />
19
              </div>
20
            </div>
21
            <div class="clearfix">
22
              <label for="password">Password:</label>
23
              <div class="input">
24
                <input class="span3" id="user-password" name="password" type="password" />
25
              </div>
26
            </div>
27
          </fieldset>
28
         <div>
29
            <a href="{% url pithos.im.views.local_create %}">Sign up</a>
30
         </div>
31
         <div>
32
            <a href="{% url pithos.im.views.reclaim_password %}">Forgot your password?</a>
33
         </div>
34
         <br>
35
          <div class="">
36
            <input type="hidden" name="next" value="{{ next }}">
37
            <button type="submit" class="btn primary">Go</button>
38
          </div>
39
        </form>
40
      </div>
41
    {% endif %}
42
    {% if "invitation" in standard_modules %}
43
      <div class="span4">
44
        <h4>Invitation</h4>
45
        <form action="{% url pithos.im.target.invitation.login %}" class="form-stacked">
46
          <fieldset>
47
            <div class="clearfix">
48
              <label for="code">Code:</label>
49
              <div class="input">
50
                <input class="span3" id="user-code" name="code" type="text" />
51
              </div>
52
            </div>
53
          </fieldset>
54
          <div class="">
55
            <input type="hidden" name="next" value="{{ next }}">
56
            <button type="submit" class="btn primary">Go</button>
57
          </div>
58
        </form>
59
      </div>
60
    {% endif %}
61
    {% if other_modules %}
62
      <div class="span8">
63
        <h4>Other provider</h4>
64
        {% for o in other_modules %}
65
            <a href="/im/login/{{ o }}{% ifnotequal next "" %}?next={{ next|urlencode }}{% endifnotequal %}" alt="{{ o|title }}"><img src="/im/static/{{ o }}.png" width="120" height="120"></a>
66
        {% endfor %}
67
      </div>
68
    {% endif %}
69
    </div>
70
{% endblock body%}