combo/combo/apps/wcs/templates/combo/wcs/backoffice_submission.html

23 lines
1.1 KiB
HTML

{% load i18n %}
{% block cell-content %}
{% if all_formdefs %}
<h2>{% trans "New Form" %}</h2>
{% for site_formdefs in all_formdefs.values %}
<div class="links-list">
{% if all_formdefs.keys|length > 1 %}<h3>{{ site_formdefs.title }}</h3>{% endif %}
<ul>
{% regroup site_formdefs.data|dictsort:"category" by category as categories_formdefs %}
{% for category_formdefs in categories_formdefs %}
<li><h4>{{ category_formdefs.grouper }}</h4></li>
{% for formdef in category_formdefs.list|dictsort:"title" %}
<li><a class="wcs-bo-submission-link" href="{{formdef.backoffice_submission_url}}?{% if name_id %}NameID={{name_id}}&{% endif %}ReturnURL={{ absolute_uri|iriencode }}">{{formdef.title}}</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>
{% endfor %}
{% elif not combo_hide_empty_message %}
<div class="cell--body"><p class="empty-message">{% trans "There are no possible backoffice submissions." %}</p></div>
{% endif %}
{% endblock %}