wcs/wcs/templates/wcs/backoffice/comment-templates.html

38 lines
1.2 KiB
HTML

{% extends "wcs/backoffice/base.html" %}
{% load i18n %}
{% block appbar-title %}{% trans "Comment Templates" %}{% endblock %}
{% block appbar-actions %}
<a href="categories/">{% trans "Categories" %}</a>
<a rel="popup" href="import">{% trans "Import" %}</a>
<a rel="popup" href="new">{% trans "New comment template" %}</a>
{% endblock %}
{% block content %}
{% if categories %}
{% for category in categories %}
{% if category.comment_templates %}
<div class="section">
<h2>{{ category.name }}</h2>
<ul class="objects-list single-links">
{% for comment_template in category.comment_templates %}
<li><a href="{{ comment_template.id }}/">{{ comment_template.name }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
{% elif comment_templates %}
<ul class="objects-list single-links">
{% for comment_template in comment_templates %}
<li><a href="{{ comment_template.id }}/">{{ comment_template.name }}</a></li>
{% endfor %}
</ul>
{% else %}
<div class="infonotice">
{% trans "There are no comment templates defined." %}
</div>
{% endif %}
{% endblock %}