Include comment field in OrderDetail view

This commit is contained in:
Tobias Kunze
2016-08-12 11:33:08 +02:00
parent 3eb581e55a
commit 6fcf393aba
6 changed files with 55 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{% extends "pretixcontrol/event/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load eventurl %}
{% block title %}
{% blocktrans trimmed with code=order.code %}
@@ -279,6 +280,25 @@
</div>
{% endif %}
</div>
<div class="panel panel-default items">
<div class="panel-heading">
<h3 class="panel-title">
{% trans "Internal comment" %}
</h3>
</div>
<div class="panel-body">
<form class="form" method="post"
action="{% url "control:event.order.comment" event=request.event.slug organizer=request.event.organizer.slug code=order.code %}">
{% csrf_token %}
<div class="row">
{% bootstrap_field comment_form.comment layout="horizontal" show_help=True show_label=False horizontal_field_class="col-md-12" %}
</div>
<button class="btn btn-default">
{% trans "Update comment" %}
</button>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-lg-2">