This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
compte-agglo-montpellier/compte_agglo_montpellier/templates/a2_service_list_plugin/plugin.html

29 lines
1.1 KiB
HTML

{% load url from future %}
{% load sekizai_tags %}
{% load i18n %}
{% if request.user.is_authenticated %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}a2_service_list_plugin/css/style.css"></link>{% endaddtoblock %}
<div class="service-list">
<h1>{% trans "My services" %}</h1>
<ul>
{% for service in services %}
{% if service.actions %}
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %}
<span class="actions">
{% for action in service.actions %}
<form action="{{ action.2 }}" method="{{ action.1 }}">
{% for key, value in action.3 %}
<input type="hidden" name="{{ key }}" value="{{ value }}" />
{% endfor %}
<input type="hidden" name="next" value="/"/>
<input type="submit" class="submit-link" value="{{ action.0 }}">
</form>
{% endfor %}
</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}