Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.6 kB)

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

    
3
{% block body %}
4

    
5
<form action={%url edit_profile %} method="post" class="withlabels hidden-submit">{% 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
</form>
17

    
18
<div class="full-dotted">
19
        <div class="auth_methods">
20
        <h2>ENABLED AUTHENTICATION METHODS</h2>
21
        <ul>
22
                {% for provider in user_providers %}
23
                <li>
24
                        <a href="#">{{ provider.settings.title }}</a>
25
                        <div class="wrap">
26
                                <p>{{ provider.details_display }}</p>
27
                                <div class="actions">
28
  
29
                                  {% for name, url in provider.settings.extra_actions %}
30
                                  <a href="{{ url }}" title="{{ name }}">{{ name }}</a>
31
                                  {% endfor %}
32
                                  {% if provider.can_remove %}
33
                                      <div class="dialog-wrap">
34
                                              <a href="#" title="disable" class="red">
35
                                              Disable x</a>
36
                                              <div class="dialog">Are you sure you want to disable this method?
37
                                                      <a href="{% url remove_auth_provider provider.pk %}" class="yes submit">Yes</a>&nbsp;&nbsp;&nbsp;<a href="#" class="no submit">No</a>
38
                                              </div>        
39
                                      </div>
40
                                              
41
                                  {% endif %}
42
                                </div>
43
                        </div>
44
                </li>
45
                {% empty %}
46
                <li>No available authentication methods</li>
47
                {% endfor %}
48
                
49
        </ul>
50
        <ul class="notassigned">
51
                <li>
52
                        <a href="#">+ Add new authentication method</a>
53
                        
54
                        <div class="wrap">
55
                                {% for provider in user_available_providers %}
56
                                        <p><a href="{{ provider.add_url }}">{{ provider.title }}</a> ( {{ provider.add_description }})</p>
57
                                {% empty %}
58
                                No available providers 
59
                                {% endfor %}        
60
                        </div>
61
                        
62
                </li>
63
        </ul>
64
                
65
    </div>
66
</div>
67

    
68
<div class="full-dotted">
69
        <ul class="options">
70
                <li><a href="https://okeanos.grnet.gr/home/" class="blue">Back to ~okeanos ></a></li>
71
                <li><a href="https://cyclades.okeanos.grnet.gr/ui/" class="blue">Take me to cyclades ></a></li>
72
                <li><a href="https://pithos.okeanos.grnet.gr/ui/" class="blue">Take me to pithos+ ></a></li>
73
        </ul>
74
                 
75
</div>
76
{% endblock body %}