{% extends 'bridge/base.html' %} {% 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 humanize %} {% load tz %} {% load static %} {% load compress %} {% block head_block %} {# Jstree #} {% compress js file view-files %} {% endcompress %} {% endblock %} {% block title %}{% trans 'Preset job' %}{% endblock %} {% block body_block %}
{# Check PRESET_JOB_TYPE #} {% if object.type != '0' %} {# Preset job menu #} {% endif %} {# Job data table #} {% if object.identifier %} {% endif %} {% if parents|length %} {% endif %} {% if children %} {% endif %}
{{ object.name }}
{% trans 'Identifier' %}{{ object.identifier }}
{% trans 'Files check date' %} {% if user.data_format == 'hum' %}{{ object.check_date|naturaltime }}{% else %}{{ object.check_date }}{% endif %}
{% if object.type == '1' %}{% trans 'Preset job parents' %}{% else %}{% trans 'Job directory parents' %}{% endif %} {% include 'jobs/parents.html' with parents=parents %}
{% trans 'Children' %} {% include 'jobs/presetChildrenTree.html' with children=children %}
{% if files %} {# Files tree #} {% include 'jobs/filesTree.html' with data=files div_id='filestree_container' %} {% endif %}
{% if object.type == '1' %} {# Create jobs directory name modal #} {% elif object.type == '2' %} {# Change jobs directory name modal #} {# Remove preset dir #} {% endif %} {% endblock %}