54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
|
{% extends "base.html" %}
|
||
|
{% load i18n %}
|
||
|
|
||
|
{% block title %}
|
||
|
{% trans "Authentic" %}
|
||
|
{% endblock %}
|
||
|
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
{% if account_management %}
|
||
|
<p>
|
||
|
<a href="{% url 'account_management' %}">{% trans "Account Management" %}</a>
|
||
|
</p>
|
||
|
{% endif %}
|
||
|
|
||
|
|
||
|
{% if authorized_services %}
|
||
|
<div id="login-actions">
|
||
|
<h2>{% trans "Services" %}</h2>
|
||
|
<ul>
|
||
|
{% for service in authorized_services %}
|
||
|
{% if service.actions %}
|
||
|
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %}
|
||
|
<div class="actions">
|
||
|
{% for action in service.actions %}
|
||
|
{% if action.0 == "template" %}
|
||
|
{% include action.1 %}
|
||
|
{% else %}
|
||
|
<form action="{{ action.2 }}" method="{{ action.1 }}">
|
||
|
{% if action.3 %}
|
||
|
{% for key, value in action.3 %}
|
||
|
<input type="hidden" name="{{ key }}" value="{{ value }}" />
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
<input type="hidden" name="next" value="/"/>
|
||
|
<input type="submit" class="submit-link" value="{{ action.0 }}">
|
||
|
</form>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
</li>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if user.is_staff %}
|
||
|
<p id="administration-link"><a href="/admin">{% trans "Administration" %}</a></p>
|
||
|
{% endif %}
|
||
|
|
||
|
{% endblock %}
|