symposion_app/vendor/regidesk/regidesk/templates/regidesk/boardingpass_prepare.html
Joel Addison 1e1e309fa6 Update boarding pass pages
Update glyphs to Bootstrap Icons and styling to use Boostrap 4.
Improve navigation and page titles throughout section.
2025-01-03 12:25:16 +00:00

75 lines
3.7 KiB
HTML

{% extends "regidesk/base.html" %}
{% load i18n %}
{% load registrasion_tags %}
{% load lca2018_tags %}
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
<!-- {% total_items_purchased 2 as penguin_dinner_count %} -->
<!-- {% total_items_purchased 3 as speakers_dinner_count %} -->
<!-- {% total_items_purchased 4 as pdns_count %} -->
{% ticket_type as ticket_type %}
{% block head_title %}Boarding Pass Preparation{% endblock %}
{% block page_title %}Boarding Pass Preparation{% endblock %}
{% block page_lead %}Confirm the boarding pass is correct via the preview then send.{% endblock %}
{% block body %}
<div class="row">
<div class="col-md-4">
<h2>Attendees</h2>
<table class="table table-striped table-compact">
{% for attendee in attendees %}
{% with profile=attendee.attendeeprofilebase.attendeeprofile %}
<tr>
<td>
<strong>{{ profile.name }}</strong> ({{ attendee.user.email }})<br />
{{ attendee.ticket_type }}<br/>
{{ profile.company }}<br/>
{{ profile.free_text_1 }}<br/>
{{ profile.free_text_2 }}<br/>
</td>
</tr>
{% endwith %}
{% endfor %}
</table>
</div>
<div class="col-md-6">
<h2>Email</h2>
<form class="form" method="post" action="{% url "regidesk:boarding_send" %}">
{% csrf_token %}
<label>From Address</label>
<input type="text" name="from_address" class="span5 label-required" value="{{ template.from_address }}" />
<br/>
<label>Subject</label>
<input type="text" name="subject" class="span5" value="{{ subject }}" />
<br/>
<label>Template</label>
<a href=" {% url 'admin:regidesk_boardingpasstemplate_change' template.id %}">
<input type="text" readonly class="form-control-plaintext span5" value="{{ template.label }}">
</a>
<div class="panel panel-default">
<ul class="nav nav-tabs panel-heading" id="templates" role="tablist">
<li class="nav-item"><a class="nav-link active" id="plain_template" data-toggle="tab" href="#plain" role="tab" aria-selected="true">Plaintext</a></li>
<li class="nav-item"><a class="nav-link" id="html_template" data-toggle="tab" href="#html" role="tab" aria-selected="false">HTML</a></li>
</ul>
<div class="tab-content panel-body" id="templatesContent">
<div class="tab-pane active monospace-text" id="plain" role="tabpanel" aria-labelledby="plain_template">{{ rendered_template.plain }}</div>
<div class="tab-pane fade show" id="html" role="tabpanel" aria-labelledby="html_template">{{ rendered_template.html }}</div>
</div>
</div>
<input type="hidden" name="notification_template" value="{{ template.pk }}" />
<input type="hidden" name="attendees" value="{{ attendees }}" />
{% include "regidesk/_bp_prepare_help.html" %}
<button type="submit" class="btn btn-primary">Send {{ attendees|length }} Email{{ attendees|length|pluralize }}</button>
<a class="btn btn-secondary" href="{% url "regidesk:boarding_overview" %}">Cancel</a>
</form>
</div>
</form>
{% endblock %}