symposion_app/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html
Sachi King e41da66cac Fix bulk action
Bulk action marks printed + schwag, but as print is automated and
happens after checkin is flagged, we should only set checkin and schwag
and print will happen.
2018-01-23 13:30:45 +11:00

126 lines
6.3 KiB
HTML

{% extends "regidesk/base.html" %}
{% block header_title %}
<h3>Pre-print check</h3>
{% endblock %}
{% block body %}
{% load registrasion_tags %}
{% load lca2018_tags %}
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
{% items_purchased 6 as shirts %}
{% total_items_purchased 3 as penguin_dinner_count %}
{% total_items_purchased 4 as speakers_dinner_count %}
{% total_items_purchased 5 as pdns_count %}
{% ticket_type as ticket_type %}
<div class="panel panel-default">
<div class="panel-heading">Content Check</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Ticket type</dt><dd>{{ ticket_type }}</dd>
<dt>Name</dt><dd>{{ user.attendee.attendeeprofilebase.attendeeprofile.name }}</dd>
<dt>Company</dt><dd>{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}</dd>
<dt>Free Text 1</dt><dd>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</dd>
<dt>Free Text 2</dt><dd>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}</dd>
<dt>Penguin Dinner Tickets</dt><dd>{{ penguin_dinner_count }}</dd>
<dt>Spearker Dinner Tickets</dt><dd>{{ speakers_dinner_count }}</dd>
<dt>PDNS Tickets</dt><dd>{{ pdns_count }}</dd>
<dt>Over 18 years</dt><dd>{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}yes{% else %}<strong class="red">NO</strong>{% endif %}</dd>
<dt>Username</dt><dd>{{ user.username }}</dd>
</dl>
<table class="table table-striped">
<tr>
<th>item</th>
<th>count</th>
</tr>
{% for shirt in shirts%}
<tr>
<td>{{ shirt.product }}</td>
<td>{{ shirt.quantity }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
<div class="panel {% if check_in.checked_in_bool %}panel-danger{% else %}panel-success{% endif %}">
<div class="panel-heading">Check In</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Status</dt><dd>{% if check_in.checked_in_bool %}Checked in{% else %}Not checked in{% endif %}</dd>
</dl>
<blockquote>
<p>If an attendee sees an error with their contents, please instruct them to change their profile and come back before checking them in.</p>
<p>The attendee will be unable to edit their profile after they have been checked in</p>
</blockquote>
<form method="post">
<input type="checkbox" name="checkin" value="checkin" checked hidden>
<input class="btn {% if check_in.badge_printed %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
</form>
</div>
</div>
<div class="panel {% if check_in.badge_printed %}panel-danger{% else %}panel-success{% endif %}">
<div class="panel-heading">Badge</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Status</dt><dd>{% if check_in.badge_printed %}Marked{% else %}Not marked{% endif %} as printed</dd>
</dl>
<form method="post" hidden>
<input type="checkbox" name="badge" value="badge" checked hidden>
<a type="button" class="btn btn-primary" href="badge">Show Badge</a>
<input class="btn {% if check_in.badge_printed %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
</form>
<form method="post">
<input type="checkbox" name="unbadge" value="unbadge" checked hidden>
<input class="btn btn-danger pull-right" type="submit" value="Force Reprint">
</form>
</div>
</div>
<div class="panel {% if check_in.schwag_given %}panel-danger{% else %}panel-success{% endif %}">
<div class="panel-heading">Schwag</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Status</dt><dd>{% if check_in.schwag_given %}Marked{% else %}Not marked{% endif %} as given</dd>
</dl>
<form method="post">
<input type="checkbox" name="schwag" value="schwag" checked hidden>
<input class="btn {% if check_in.schwag_given %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
</form>
</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">Log Exception</div>
<div class="panel-body">
<form method="post">
<textarea class="form-control" rows="3" name="exception">{{ check_in.review_text }}</textarea>
<p class="help-block">Reminder: Please tell attendee to email boarding@lca2018.org with the details as well</p>
<input class="btn btn-warning pull-right" type="submit" value="Submit">
</form>
</div>
</div>
<div class="panel {% if check_in.checked_in_bool or check_in.schwag_given %}panel-danger{% else %}panel-success{% endif %}">
<div class="panel-heading">Bulk actions</div>
<div class="panel-body">
<p>Mark attendee as checked in and schwag given</p>
<dl class="dl-horizontal">
<dt>Status</dt><dd>{% if check_in.checked_in_bool or check_in.schwag_given %}One of the items in bulk action is marked as given already{% else %}Both items are marked as unrecived{% endif %}</dd>
</dl>
<form method="post">
<input type="checkbox" name="bulk" value="bulk" checked hidden>
<input class="btn {% if check_in.checked_in_bool or check_in.schwag_given %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
</form>
</div>
</div>
<a type=button" class="btn btn-primary btn-lg" href="{% url 'regidesk:check_in_scanner' %}">Return to scanning page</a>
{% endblock %}