-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fixes a bug where the waiver date was tabbable, and fixes a bug where the sorting for cabins and meals was not working.
- Loading branch information
Showing
7 changed files
with
103 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ dist | |
.cache | ||
.eggs/ | ||
.coverage | ||
config.ini | ||
magstock.ini | ||
test.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends "uber/templates/base.html" %}{% set admin_area=True %} | ||
{% block title %}MAGStock Cabin Report{% endblock %} | ||
{% block content %} | ||
<h2 class="center">MAGStock Cabin Report</h2> | ||
|
||
<div class="card"> | ||
<div class="card-header">Cabin Totals</div> | ||
<div class="card-body"> | ||
<a href="cabin_purchasers_report"> | ||
<span class="glyphicon glyphicon-download"></span> Download CSV | ||
</a> | ||
<p><strong>{{ total_data['attendee_count'] }}</strong> attendees with cabins</p> | ||
<p>Cabin type counts: | ||
<ul> | ||
{% for type, label in c.CABIN_TYPE_OPTS %} | ||
<li><strong>{{ label }}</strong>: {{ total_data[type] }}</li> | ||
{% endfor %} | ||
</ul> | ||
</p> | ||
{% if total_data['discrepancy_count'] %} | ||
<p> | ||
<strong>{{ total_data['discrepancy_count'] }} attendees are marked as having a cabin but do not have a specific cabin type.</strong> | ||
Please check the list below for attendees without a cabin type. | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<br/> | ||
<div class="card"> | ||
<div class="card-header">Attendees with Cabins</div> | ||
<div class="card-body"> | ||
<table class="table table-striped datatable"> | ||
<thead> | ||
<th>Attendee</th> | ||
<th>Cabin Type</th> | ||
<th>Group Name</th> | ||
<th>Badge Type</th> | ||
</thead> | ||
<tbody> | ||
{% for attendee in total_data['attendees'] %} | ||
<tr> | ||
<td>{{ attendee|form_link }}</td> | ||
<td>{{ attendee.cabin_type_label }}</td> | ||
<td>{{ attendee.group.name }}</td> | ||
<td>{{ attendee.badge_type_label }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters