{% load i18n %} {% load processlib_tags %} {% get_activities_to_do request.user process as to_do %} {% if process.status == process.STATUS_CANCELED %} {% trans "This process has been canceled." %} {% elif process.status == process.STATUS_DONE %} {% trans "This process has been finished." %} {% else %} {% for activity in to_do %} {% with instance=activity.instance %} {% if instance.status == instance.STATUS_ERROR %}
{% csrf_token %} {% blocktrans with activity=activity %} An error occurred during activity {{ activity }}. {% endblocktrans %}
{% elif activity.has_view %} {{ activity }} {% endif %} {% endwith %} {% empty %} {% trans "There is nothing for you to do in this process." %} {% endfor %} {% endif %}