{% extends "base.html" %} {% if is_installation %} {% block script_installation %} {% if getting_config %} $('#dialog_installation').dialog({ autoOpen: false, width: 600, buttons: { {% if not config_error_message %} "Установить": function() { $('#form_installation').submit(); }, {% endif %} "Отмена": function() { $('#form_installation_close').submit(); } } }); {% else %} $('#dialog_installation').dialog({ autoOpen: false, width: 600, buttons: { "Закрыть": function() { $('#form_installation_close').submit(); } } }); {% endif %} $('#dialog_installation').dialog('open'); {% endblock %} {% endif %} {% block script_installation_log %} {% for i in installations_by_time %} $('.dialog_installation_log_link_{{i.id}}').click(function() { $('#dialog_installation_log_{{i.id}}').dialog('open'); }); {% endfor %} {% endblock %} {% block dialogs_creating %} {% if is_changing_groups %} $('#dialog_changing_groups').dialog('open'); {% endif %} {% if is_changing_attrs %} $('#dialog_changing_attrs').dialog('open'); {% endif %} {% endblock %} {% block content %} {% if is_installation %} {% if getting_config %}
{% if config_error_message %} {{config_error_message}} {% else %}
{% for k, v, t in config %} {% empty %} {% endfor %}
{{k}}
Аргументы не требуются. Продолжить?
{% csrf_token %}
{% endif %}
{% else %}

{% for l in log %} {{l.2}}
{% endfor %}

{% endif %}
{% csrf_token %}
{% endif %} {% if is_changing_groups %}
{% csrf_token %} {% csrf_token %} {% csrf_token %}
{% endif %} {% if is_changing_attrs %}
{% for name, default in server_attrs %} {% csrf_token %} {% endfor %} {% csrf_token %}
Имя Дефолтное значение
{{name}} {{default}}
{% endif %}
{% if err_msg %}
{{err_msg}}
{% else %} {% if status != 'Offline' and not is_installation %}
{% csrf_token %}
{% endif %} {% if rename %}

{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% if change_level %}

{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% if server_groups %} Сервер состоит в группах: {% for g in server_groups %} {{g}} {% if not forloop.last %}, {% endif %} {% endfor %}
{% csrf_token %}
{% else %} Сервер не состоит в группах.
{% csrf_token %}
{% endif %} {% if server_attrs %} У сервера установлены атрибуты: {% for a in server_attrs %} {{a.0}} ({{a.1}}) {% if not forloop.last %}, {% endif %} {% endfor %}
{% csrf_token %}
{% else %} У сервера не установлены атрибуты.
{% csrf_token %}
{% endif %} {% endif %}
{% for i in installations_by_time %} Рецепт: {{i.recipe_name}} ({{i.recipe_version}})
Дата установки: {{i.date}}
Статус: {% ifequal i.status 'error' %} {{i.status}} {% else %} {{i.status}} {% endifequal %}
Конфиг:
    {% for k, v in i.config.items %}
  • {{k}} = {{v}}
  • {% endfor %}
{% if i.log %} Лог

{% for l in i.log %} {{l.2}}
{% endfor %}

{% endif %}

{% empty %} Пока ничего не установлено. Выберите рецепт из меню слева. {% endfor %}
{% for ins in installations %}
{% csrf_token %}

{% for i in ins.2 %} Версия: {{i.recipe_version}}
Дата установки: {{i.date}}
Статус: {% ifequal i.status 'error' %} {{i.status}} {% else %} {{i.status}} {% endifequal %}
Конфиг:
    {% for k, v in i.config.items %}
  • {{k}} = {{v}}
  • {% endfor %}
{% if i.log %} Лог: {% endif %}

{% endfor %}
{% endfor %}
{% endblock %}