Revision 13858d75 astakos/im/templates/signup.html

b/astakos/im/templates/signup.html
1
{% extends "base.html" %}
1
{% extends 'base_two_cols.html' %}
2 2

  
3
{% block title%}
4
        <h1>Welcome</h1>
5
        <p>Choose how to signup.</p>
6
{% endblock title%}
3
{% block signin_class %}hidden{% endblock %}
7 4

  
8
{% block body%}
9
    <div class="row">
5
{% block page.title %}
6
    Signup
7
{% endblock %}
8

  
9
{% block body %}
10
<div class="section">
11
    <img class="pic" src="{{ IM_MEDIA_URL }}images/pictures/signup_pic.png" />
12
</div>
13
{% include "services_description.html" %}
14
{% endblock body %}
15

  
16
{% block body.right %}
10 17
    {% if "local" in im_modules %}
11
      <div class="span4">
12
        <h4>Local account</h4>
13
        <form action="{% url astakos.im.views.signup %}" method="post" class="form-stacked">{% csrf_token %}
14
          {{ local_form.as_p }}
15
         <br>
16
          <div class="">
18
      <div class="form-stacked">
19
        <form action="{% url astakos.im.views.signup %}" method="post"
20
            class="innerlabels signup">{% csrf_token %}
21
          <h2><span>SIGN UP</span></h2>
17 22
            <input type="hidden" name="next" value="{{ next }}">
18 23
            <input type="hidden" name="code" value="{{ code }}">
19 24
            <input type="hidden" name="provider" value="local">
20
            <button type="submit" class="btn primary">Go</button>
21
          </div>
25
            {% with local_form as form %}
26
            {% include "form_render.html" %}
27
            {% endwith %}
28
            <div class="form-row submit">
29
                <input type="submit" class="submit altcol" value="SUBMIT" />
30
            </div>
31
        </form>
32
      </div>
33
    {% endif %}
34
    {% if "twitter" in im_modules %}
35
      <div class="form-stacked">
36
        <form action="{% url astakos.im.views.signup %}" method="post"
37
            class="innerlabels signup">{% csrf_token %}
38
            <h2><span>SIGN UP USING TWITTER</span></h2>
39
            <input type="hidden" name="next" value="{{ next }}">
40
            <input type="hidden" name="code" value="{{ code }}">
41
            <input type="hidden" name="provider" value="twitter">
42
            {% with twitter_form as form %}
43
            {% include "form_render.html" %}
44
            {% endwith %}
45
            <div class="form-row submit">
46
                <input type="submit" class="submit altcol" value="SUBMIT" />
47
            </div>
22 48
        </form>
23 49
      </div>
24 50
    {% endif %}
25
    <div class="span4">
26
        {% if 'twitter' in im_modules %}
27
            <img src="/im/static/twitter.png" width="120" height="120">
28
            <form action="{% url astakos.im.views.signup %}" method="post" class="form-stacked">{% csrf_token %}
29
                 {{ twitter_form.as_p }}
30
                <br>
31
                <div class="">
32
                  <input type="hidden" name="next" value="{{ next }}">
33
                  <input type="hidden" name="code" value="{{ code }}">
34
                  <input type="hidden" name="provider" value="twitter">
35
                  <input type="submit" value="Signup with Twitter"/>
36
                </div>
37
              </form>
38
        {% endif %}
39
    </div>
40
    <div class="span4">
41 51
        {% if 'shibboleth' in im_modules %}
42
            <img src="/im/static/shibboleth.png" width="120" height="120">
43
            <form action="{% url astakos.im.target.shibboleth.login %}" method="post" class="form-stacked">{% csrf_token %}
44
                <br>
45
                <div class="">
52
          <div class="form">
53
            <form action="{% url astakos.im.target.shibboleth.login %}" method="post"
54
                class="innerlabels signup">{% csrf_token %}
55
              <h2><span>SIGN UP USING SHIBBOLETH</span></h2>
46 56
                  <input type="hidden" name="next" value="{{ next }}">
47 57
                  <input type="hidden" name="code" value="{{ code }}">
48 58
                  <input type="hidden" name="provider" value="shibboleth">
49
                  <input type="submit" value="Sign up with Shibboleth"/>
59
                <div class="form-row submit">
60
                    <input type="submit" class="submit altcol" value="SUBMIT" />
50 61
                </div>
51
              </form>
62
            </form>
63
          </div>
52 64
        {% endif %}
53 65
      </div>
54
    </div>
55
{% endblock body%}
66
{% endblock %}

Also available in: Unified diff