{% load widget_tweaks %} {% load pretty_name %}

Подробная информация #{{object.id}}

Название: {{ object.name }}
Описание: {{ object.description }}
{% if domain_groups %}

Доменные группы:

{% for domain_gr in domain_groups%} Группа: {{domain_gr.name}}
    {% for host in domain_gr.hosts%}
  • {{ host}}
  • {% endfor%}
{% endfor %}
{% endif %} {% if custom_groups %}

Созданные группы:

{% for custom_gr in custom_groups%} Группа: {{custom_gr.name}}
    {% for host in custom_gr.hosts%}
  • {{ host}}
  • {% endfor%}
{% endfor %}
{% endif %}
Сценарий: {{ object.playbook }}
Статус: {{ object.status }}
Время создания: {{ object.create_at}}
{% if object.status != 'Не запущен' %}
Код ошибки: {{ object.code}}
Начало исполнения: {{ object.start_at}}
Конец исполнения: {{ object.stop_at}}
{% endif %} {% if object.type_launch == 'Созданные плейбуки'%}

Имя файла: {{object.name_file}}
 {{ object.log_file}}
{% endif %} {% if object.type_launch == 'Системная политика'%} {% endif %} {% if object.type_launch == 'Групповые политики'%}

    {%if object.input_fields%} {% for field in object.input_fields|loads_json %}
  • {{field.name}}: {{field.input}}
  • {%endfor%} {% endif %}
{% endif %} {% if object.type_launch == 'Политики' %}
ip: {{object.ip}}
hostname: {{object.hostname}}
Пользователь: {{object.userhost}}
{% endif %} {% if object.type_launch == 'Политики' %} {% for policy in object.input_fields|loads_json%}

Поля ввода:
    {% for field in policy.input_field %} {% if field.file%} {{field.file}} {% else %}
  • {{field.name}}: {{field.input}}
  • {% endif%} {%endfor%}
Вывод результата:
 {{policy.log.log}}
Код ошибки: {{policy.log.code}}
{% endfor %} {% endif %} {% if object.type_launch != 'Политики' %}
Вывод результата:
 {{ object.log_res}}
{% endif %}