Commit 1b6bdd92 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Split profile authentication methods in separate file

parent 4540976a
......@@ -17,53 +17,7 @@
</form>
<div class="full-dotted">
<div class="auth_methods">
<h2>ENABLED AUTHENTICATION METHODS</h2>
<ul>
{% for provider in user_providers %}
<li>
<a href="#">{{ provider.settings.title }}</a>
<div class="wrap">
<p>{{ provider.details_display }}</p>
<div class="actions">
{% for name, url in provider.settings.extra_actions %}
<a href="{{ url }}" title="{{ name }}">{{ name }}</a>
{% endfor %}
{% if provider.can_remove %}
<div class="dialog-wrap">
<a href="#" title="disable" class="red">
Disable x</a>
<div class="dialog">Are you sure you want to disable this method?
<a href="{% url remove_auth_provider provider.pk %}" class="yes submit">Yes</a>&nbsp;&nbsp;&nbsp;<a href="#" class="no submit">No</a>
</div>
</div>
{% endif %}
</div>
</div>
</li>
{% empty %}
<li>No available authentication methods</li>
{% endfor %}
</ul>
<ul class="notassigned">
<li>
<a href="#">+ Add new authentication method</a>
<div class="wrap">
{% for provider in user_available_providers %}
<p><a href="{{ provider.add_url }}">{{ provider.title }}</a> ( {{ provider.add_description }})</p>
{% empty %}
No available providers
{% endfor %}
</div>
</li>
</ul>
</div>
{% include "im/profile_auth_methods.html" %}
</div>
<div class="full-dotted right-align">
......
<div class="auth_methods">
<h2>ENABLED AUTHENTICATION METHODS</h2>
<ul>
{% for provider in user_providers %}
<li>
<a href="#">{{ provider.title_display }}</a>
<div class="wrap">
<p>{{ provider.details_display }}</p>
<div class="actions">
{% for name, url in provider.settings.extra_actions %}
<a href="{{ url }}" title="{{ name }}">{{ name }}</a>
{% endfor %}
{% if provider.can_remove %}
<div class="dialog-wrap">
<a href="#" title="disable" class="red">Disable x</a>
<div class="dialog">Are you sure you want to disable this method?
<a href="{% url remove_auth_provider provider.pk %}"
class="yes submit">Yes</a>&nbsp;&nbsp;&nbsp;<a href="#" class="no submit">No</a>
</div>
</div>
{% endif %}
</div>
</div>
</li>
{% empty %}
<li>No available authentication methods</li>
{% endfor %}
</ul>
<ul class="notassigned">
<li>
<a href="#">+ Add new authentication method</a>
<div class="wrap">
{% for provider in user_available_providers %}
<p><a href="{{ provider.add_url }}">
{{ provider.get_title_display }}</a><br />
<span class="description">
{{ provider.get_description_display }}
</span>
</p>
{% empty %}
No available providers
{% endfor %}
</div>
</li>
</ul>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment