{% extends "base.html" %} {% load comments %} {% block title %}Просмотр заявки{% endblock %} {% block script %} {{ block.super }} {% endblock %} {% block content %}
{% if issue.status == "A" or issue.status == "R" %} {% endif %} {% if with_clients %} {% endif %} {% if new_consumer %} {% else %} {% endif %} {% if issue.consumer_name_new %} {% endif %} {% if issue.consumer_description %} {% elif issue.type == 'M' %} {% endif %} {% if issue.expiration %} {% endif %} {% if issue.add_action.exists %} {% with issue.add_action.select_related as grants %} {% endwith %} {% endif %} {% if issue.del_action.exists %} {% with issue.del_action.select_related as grants %} {% endwith %} {% endif %} {% if issue.add_macros.exists %} {% endif %} {% if issue.del_macros.exists %} {% endif %} {% if issue.add_network.exists %} {% endif %} {% if issue.del_network.exists %} {% endif %}
Статус заявки {{ issue.get_status_display }} {% if issue.status == "N" or issue.status == "D" and issue.creator == request.user %} редактировать {% endif %}
Заявку создал(а) {{ issue.creator.username }} {{ issue.creator.first_name }} {{ issue.creator.last_name }}
Дата создания {{ issue.creation_date }}
Заявку рассматривал(а) {{ issue.approving_person.username }} {{ issue.approving_person.first_name }} {{ issue.approving_person.last_name }}
Дата рассмотрения {{ issue.approving_date }}
Проект {{ issue.namespace }}
Окружения {{ issue.environments.all|join:", " }}
Clients {% for client in issue.clients.select_related %}
{{ client.environment }}:
Client ID: {{ client.client_id }} Client name: {{ client.name }} {% endfor %}
Новый потребитель
Потребитель{{ issue.get_consumer_name }}
Новое имя потребителя {{ issue.consumer_name_new }}
Новое описание {{ issue.consumer_description }}
Описание {{ issue.consumer.description }}
Дата истечения срока выдаваемых грантов {{ issue.expiration|date:"d.m.Y" }}
Присвоение грантов{% include 'include/grant_changes.html' %}
Отчуждение грантов{% include 'include/grant_changes.html' %}
Присвоение групп грантов {% for macros in issue.add_macros.all %} {{ macros.name }} {% endfor %}
Отчуждение групп грантов {% for macros in issue.del_macros.all %} {{ macros.name }} {% endfor %}
Присвоение сетей {% with issue.addnetworks_set.select_related as networks %} {% include 'include/network_changes.html' %} {% endwith %}
Отчуждение сетей {% with issue.delnetworks_set.select_related as networks %} {% include 'include/network_changes.html' %} {% endwith %}

Комментарии к заявке

{% render_comment_list for issue %} {% if user.is_authenticated %} {% get_comment_form for issue as form %}
{% csrf_token %} {{ form.comment }} {{ form.content_type }} {{ form.object_pk }} {{ form.timestamp }} {{ form.security_hash }}
{% else %}

Для комментирования, нужно войти

{% endif %}
{% if issue.status == "N" and has_permission %}
{% endif %}
{% endblock %}