{% comment "License" %} % Copyright (c) 2019 ISP RAS (http://www.ispras.ru) % Ivannikov Institute for System Programming of the Russian Academy of Sciences % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. {% endcomment %} {% load i18n %} {% load tz %} {% load tableheader %} {% if TableData.content %} {% tableheader TableData.columns TableData.titles %} {% for preset_data in TableData.content.values %} {# Checkbox column #} {# Name column #} {% for ind in TableData.columns_num_range %}{% endfor %} {% for job_data in preset_data.jobs.values %} {# If job is under custom directory, it is hidden (PRESET_JOB_TYPE[2][0]) #} {% for v in job_data.values %} {% endfor %} {% for decision, values in job_data.decisions %} {# Decisions are hidden by default #} {% for v in values %} {% endfor %} {% endfor %} {% endfor %} {% endfor %}
{% if preset_data.instance.type == '2' %}
{% else %}   {% endif %}
{{ preset_data.instance.name }} {% if can_create and preset_data.instance.type != '0' %} {% if preset_data.instance.type == '1' %} {% elif preset_data.instance.type == '2' %} {% endif %} {% endif %}  
{{ job_data.instance.name }} {% if job_data.decisions|length %} {% endif %} {% if v.html %}{{ v.html|safe }}{% elif v.text %}{{ v.text }}{% endif %}
{% else %}

{% trans 'Please populate preset jobs' %}

{% endif %}