Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.6 kB)

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

    
3
{% block body %}
4

    
5
<h2>GENERAL INFO</h2>
6
<form action={%url edit_profile %} method="post" class="withlabels hidden-submit">{% csrf_token %}
7
    
8
    {% with profile_form as form %}
9
    {% include "im/form_render.html" %}
10
    {% endwith %}
11

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

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

    
69
<div class="full-dotted right-align">
70
        <ul class="options">
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
                <li><a href="https://okeanos.grnet.gr/home/" class="blue">~okeanos homepage ></a></li>
74
        </ul>
75
                 
76
</div>
77
{% endblock body %}