mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add button to reset entire check-in stack (Z#23188730) (#5312)
* Show print logs to admins * Add button to reset entire check-in stack (Z#23188730) * isort * Update src/pretix/control/templates/pretixcontrol/checkin/reset.html Co-authored-by: Richard Schreiber <schreiber@rami.io> * Update src/pretix/control/templates/pretixcontrol/checkin/reset.html Co-authored-by: Richard Schreiber <schreiber@rami.io> * Update src/pretix/control/templates/pretixcontrol/checkin/reset.html Co-authored-by: Richard Schreiber <schreiber@rami.io> * Update src/pretix/control/templates/pretixcontrol/checkin/lists.html Co-authored-by: Richard Schreiber <schreiber@rami.io> --------- Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
@@ -83,6 +83,13 @@
|
||||
<a href="{% url "control:organizer.devices" organizer=request.organizer.slug %}"
|
||||
class="btn btn-default"><i class="fa fa-tablet"></i> {% trans "Connected devices" %}</a>
|
||||
{% endif %}
|
||||
{% if "can_change_orders" in request.eventpermset %}
|
||||
<a href="{% url "control:event.orders.checkinlists.reset" organizer=request.event.organizer.slug event=request.event.slug %}"
|
||||
class="btn btn-default">
|
||||
<span class="fa fa-repeat"></span>
|
||||
{% trans "Reset check-in" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-quotas">
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
{% extends "pretixcontrol/items/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
{% block title %}{% trans "Reset check-in" %}{% endblock %}
|
||||
{% block inside %}
|
||||
<h1>{% trans "Reset check-in" %}</h1>
|
||||
<form action="" method="post" class="" data-asynctask>
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
With this feature, you can reset the entire check-in state of the event.
|
||||
This will delete all check-in records as well as all records of printed tickets or badges.
|
||||
We recommend to use this feature after testing your hardware setup but only before your
|
||||
event started, and you admitted any real attendees or printed any real badges or tickets.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p class="alert alert-danger">
|
||||
{% blocktrans trimmed count count=checkins %}
|
||||
This will permanently delete <strong>1 check-in</strong>.
|
||||
{% plural %}
|
||||
This will permanently delete <strong>{{ count }} check-ins</strong>.
|
||||
{% endblocktrans %}
|
||||
{% blocktrans trimmed count count=printlogs %}
|
||||
Additionally, <strong>1 print log</strong> will be deleted.
|
||||
{% plural %}
|
||||
Additionally, <strong>{{ count }} print logs</strong> will be deleted.
|
||||
{% endblocktrans %}
|
||||
<br>
|
||||
<strong>
|
||||
{% trans "This cannot be reverted!" %}
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
The deleted entries will still show up in the "Order history" section, but for all other
|
||||
purposes the system will behave as if they never existed.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% bootstrap_form form layout="inline" %}
|
||||
<div class="form-group submit-group">
|
||||
<a href="{% url "control:event.orders.checkinlists" organizer=request.event.organizer.slug event=request.event.slug %}"
|
||||
class="btn btn-default btn-cancel">
|
||||
{% trans "Cancel" %}
|
||||
</a>
|
||||
<button type="submit" class="btn btn-danger btn-save">
|
||||
{% trans "Proceed with reset" %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -500,6 +500,18 @@
|
||||
{% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if staff_session %}
|
||||
<div class="admin-only print-logs">
|
||||
{% for pl in line.print_logs.all %}
|
||||
<span class="fa fa-print"></span>
|
||||
{{ pl.datetime|date:"SHORT_DATETIME_FORMAT" }}
|
||||
{{ pl.get_type_display }}
|
||||
({{ pl.source }}{% if pl.device %}, #{{ pl.device.device_id }}{% endif %})
|
||||
{% if not pl.successful %}<span class="fa fa-warning fa-fw"></span>{% endif %}
|
||||
<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if line.issued_gift_cards %}
|
||||
<dl>
|
||||
{% for gc in line.issued_gift_cards.all %}
|
||||
|
||||
Reference in New Issue
Block a user