Implement ticket download dates (closes #15)

This commit is contained in:
Raphael Michel
2015-04-16 18:05:25 +02:00
parent 14c582d11e
commit 09b24ce606
8 changed files with 140 additions and 3 deletions

View File

@@ -34,6 +34,12 @@
{% trans "Plugins" %}
</a>
</li>
<li>
<a href="{% url 'control:event.settings.tickets' organizer=request.event.organizer.slug event=request.event.slug %}"
{% if "event.settings.tickets" == url_name %}class="active"{% endif %} >
{% trans "Tickets" %}
</a>
</li>
</ul>
</li>
<li>

View File

@@ -0,0 +1,23 @@
{% extends "pretixcontrol/event/settings_base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block inside %}
<form action="" method="post" class="form-horizontal">
{% if "success" in request.GET %}
<div class="alert alert-success">
{% trans "Your changes have been saved." %}
</div>
{% endif %}
{% csrf_token %}
<fieldset>
<legend>{% trans "Ticket download" %}</legend>
{% bootstrap_field form.ticket_download layout="horizontal" %}
{% bootstrap_field form.ticket_download_date layout="horizontal" %}
</fieldset>
<div class="form-group submit-group">
<button type="submit" class="btn btn-primary btn-save">
{% trans "Save" %}
</button>
</div>
</form>
{% endblock %}