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

40 lines
1.1 KiB
HTML

{% extends "wcs/backoffice/base.html" %}
{% load i18n %}
{% block appbar-title %}{% trans "Comment Template" %} - {{ comment_template.name }}{% endblock %}
{% block appbar-actions %}
{% if not comment_template.is_readonly %}
<a href="edit">{% trans "Edit" %}</a>
{% endif %}
{% endblock %}
{% block content %}
{% if comment_template.description %}
<div class="bo-block">{{ comment_template.description }}</div>
{% endif %}
{% if comment_template.comment %}
<div class="section">
<div class="comment-comment">{{ comment_template.comment }}</div>
</div>
{% for workflow in comment_template.get_places_of_use %}
{% if forloop.first %}
<div class="section">
<h3>{% trans "Usage in workflows" %}</h3>
<ul class="objects-list single-links">
{% endif %}
<li><a href="{{ workflow.get_admin_url }}">{{ workflow.name }}</a></li>
{% if forloop.last %}
</ul>
</div>
{% endif %}
{% endfor %}
{% else %}
<div class="infonotice">{% trans "This comment template still needs to be configured." %}</div>
{% endif %}
{% endblock %}