dnmgmt/templates/rrequests/request_detail.html

34 lines
781 B
HTML

{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Header</div>
<div class="panel-body">
<h2>{{ request.subject }}</h2>
<p>
{% for message in request.requestmessage_set.all %}
<h4>{{ message.creator }} {{ message.created }}</h4>
{{ message.message | linebreaks }}
{% if message.statusChanged %}
Status changed to {{ message.statusChanged }}.
{% endif %}
{% endfor %}
</p>
<h4>Add / change</h4>
<form method="post" action="#">
{% csrf_token %}
{{ form | crispy }}
<button class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}