wcs/wcs/templates/wcs/backoffice/workflow-tests.html

57 lines
1.9 KiB
HTML

{% extends "wcs/backoffice.html" %}
{% load i18n %}
{% block appbar-title %}{% trans "Workflow tests" %}{% endblock %}
{% block appbar-actions %}
<a href="options" rel="popup">{% trans "Options" %}</a>
{% endblock %}
{% block body %}
{% if not testdef.agent_id %}
<div class="warningnotice">
<p>
{% trans "Backoffice user is not defined, workflow tests will not be executed." %}
<a href="options" rel="popup">{% trans "Open test options" %}</a>
</p>
</div>
{% elif not testdef.workflow_tests.actions %}
<div class="infonotice"><p>{% trans "There are no workflow test actions yet." %}</p></div>
{% else %}
<p class="hint">{% trans "Use drag and drop with the handles to reorder fields." %}</p>
{% endif %}
<ul class="biglist sortable">
{% for action in testdef.workflow_tests.actions %}
<li id="{{ action.id }}" data-id="{{ action.id }}" class="biglistitem workflow-test-action">
<span class="biglistitem--content">
<strong class="label">{{ action.label }}</strong>
<span class="biglistitem--content-details">
<span class="type">{{ action.render_as_line }}</span>
</span>
</span>
<p class="commands">
{% if action.editable %}
<span class="edit">
<a href="{{ action.id }}/" rel="popup" title="{% trans "Edit" %}">{% trans "Edit" %}</a>
</span>
{% endif %}
<span class="duplicate">
<a href="{{ action.id }}/duplicate" title="{% trans "Duplicate" %}">{% trans "Duplicate" %}</a>
</span>
<span class="remove">
<a href="{{ action.id }}/delete" rel="popup" title="{% trans "Delete" %}">{% trans "Delete" %}</a>
</span>
</p>
</li>
{% endfor %}
</ul>
{% endblock %}
{% block sidebar-content %}
<div>
<h3>{% trans "New workflow test action" %}</h3>
{{ sidebar_form.render|safe }}
</div>
{% endblock %}