Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / profile.html @ d2633501

History | View | Annotate | Download (2.1 kB)

1
{% extends "im/account_base.html" %}
2

    
3
{% block body %}
4

    
5
<form action={%url astakos.im.views.edit_profile %} method="post" class="withlabels">{% csrf_token %}
6
    
7
    {% with profile_form as form %}
8
    {% include "im/form_render.html" %}
9
    {% endwith %}
10

    
11
    <div class="form-row submit">
12
        <input type="hidden" name="next" value="{{ next }}">
13
        <input type="hidden" name="auth" value="{{ user.auth_token }}">
14
        <input type="submit" class="submit altcol" value="UPDATE" />
15
    </div>
16

    
17
    <div class="auth_methods">
18
      <br /><br />
19
        <div class="assigned">
20
          <h4>Authentication methods</h4>
21
          <p>You can login to your account using the following methods</p>
22
          <ul class="auth_providers">
23
            {% for provider in user_providers %}
24
            <li>
25
            <h2>
26
                {{ provider.settings.title }}
27
                <span class="actions" style="margin-left: 40px">
28
                  {% for name, url in provider.settings.extra_actions %}
29
                  <a href="{{ url }}" title="{{ name }}">{{ name }}</a>
30
                  {% endfor %}
31
                  {% if provider.can_remove %}
32
                      <a href="{% url remove_auth_provider provider.pk %}" title="disble">Remove</a>
33
                  {% endif %}
34
                </span>
35
            </h2>
36
            <p>{{ provider.details_display }}</p>
37
            <br />
38
            </li>
39
            {% empty %}
40
            <li>No available authentication methods</li>
41
            {% endfor %}
42
          </ul>
43
        </div>
44
        <div class="notassigned">
45
          <p>You can add the following authentication methods to your account </p>
46
          <ul class="auth_providers">
47
            {% for provider in user_available_providers %}
48
            <li>
49
            <h2><a href="{{ provider.add_url }}">{{ provider.title }}</a></h2>
50
            <p>{{ provider.add_description }}</p>
51
            <br />
52
            </li>
53
            {% empty %}
54
            No available providers.
55
            {% endfor %}
56
          </ul>
57
        </div>
58
    </div>
59

    
60
</form>
61
{% endblock body %}