<commit_before>{% extends "base.html" %}{% set admin_area=True %}
{% block title %}Waitlisted {{ c.DEALER_TERM|title }}s{% endblock %}
{% block content %}

<style type="text/css">
  h2 { margin-bottom: 40px; }
</style>

<script>
  $(function() {
    var $formDecline = $('#form-decline');
    $formDecline.on('submit', function(event) {
      event.preventDefault();
      bootbox.confirm({
        backdrop: true,
        title: 'Decline All Waitlisted {{ c.DEALER_TERM|title }}s?',
        message: '<p>Are you sure you want to decline <b>EVERY</b> waitlisted {{ c.DEALER_TERM }}?</p>' +
          '<p>This will convert the badges to normal Attendee badges at the price of registration ' +
          'when they first applied, minus the group discount. An email will be sent to ' +
          'each declined {{ c.DEALER_TERM }}.</p>' +
          '<p>This <b>CANNOT</b> be undone.</p>',
        buttons: {
          confirm: { label: '<span class="glyphicon glyphicon-repeat"></span> Decline & Convert', className: 'btn-danger' },
          cancel: { label: 'Nevermind', className: 'btn-default' }
        },
        callback: function (result) {
          if (result) {
            $formDecline[0].submit();
          }
        }
      });
    });
  });
</script>

<h2>
  <form id="form-decline" method="POST" action="waitlist" class="pull-right form-inline">
    <input type="hidden" name="decline_and_convert" value="1">
    <a href="../dealer_reports/waitlisted_group_info" class="btn btn-info">
      <span class="glyphicon glyphicon-download-alt"></span>
      Waitlisted {{ c.DEALER_TERM|title }} Report
    </a>
    <button type="submit" class="btn btn-danger">
      <span class="glyphicon glyphicon-repeat"></span>
      Decline & Convert
    </button>
  </form>
  Waitlisted {{ c.DEALER_TERM|title }}s
</h2>
<div class="clearfix"></div>
<table class="table table-striped datatable">
  <thead>
    <tr>
      <th>Name</th>
      <th>Approved</th>
      <th>Badges{{ macros.popup_link("../static_views/badgeCounts.html") }}</th>
      <th>Tables</th>
      <th>Cost</th>
      <th>Owed</th>
      <th>Paid</th>
      <th>Admin Notes</th>
    </tr>
  </thead>
  <tbody>
{% for group in groups %}
    <tr>
        <td style="text-align:left" data-order="{{ group.name }}" data-search="{{ group.name }}"> <a href="../group_admin/form?id={{ group.id }}">{{ group.name|default('?????', boolean=True) }}</a> </td>
        <td>
            {% if group.is_dealer %}
                {{ group.status_label }}
            {% else %}
                n/a
            {% endif %}
        </td>
        <td data-order="{{ group.badges_purchased }}" data-search="{{ group.badges_purchased }}"> {{ group.badges_purchased }} / {{ group.badges }} </td>
        <td>{{ group.tables }}</td>
        <td>{{ group.cost|format_currency }}</td>
        <td>{{ (group.amount_unpaid / 100)|format_currency }}</td>
        <td>{{ (group.amount_paid / 100)|format_currency }}</td>
        <td>{{ group.admin_notes }}</td>
    </tr>
{% endfor %}
  </tbody>
  <caption align="bottom">
    <ul class="pagination"></ul><commit_msg>Fix amount unpaid display on waitlisted page Fixes https://github.com/MidwestFurryFandom/rams/issues/425.<commit_after>{% extends "base.html" %}{% set admin_area=True %}
{% block title %}Waitlisted {{ c.DEALER_TERM|title }}s{% endblock %}
{% block content %}

<style type="text/css">
  h2 { margin-bottom: 40px; }
</style>

<script>
  $(function() {
    var $formDecline = $('#form-decline');
    $formDecline.on('submit', function(event) {
      event.preventDefault();
      bootbox.confirm({
        backdrop: true,
        title: 'Decline All Waitlisted {{ c.DEALER_TERM|title }}s?',
        message: '<p>Are you sure you want to decline <b>EVERY</b> waitlisted {{ c.DEALER_TERM }}?</p>' +
          '<p>This will convert the badges to normal Attendee badges at the price of registration ' +
          'when they first applied, minus the group discount. An email will be sent to ' +
          'each declined {{ c.DEALER_TERM }}.</p>' +
          '<p>This <b>CANNOT</b> be undone.</p>',
        buttons: {
          confirm: { label: '<span class="glyphicon glyphicon-repeat"></span> Decline & Convert', className: 'btn-danger' },
          cancel: { label: 'Nevermind', className: 'btn-default' }
        },
        callback: function (result) {
          if (result) {
            $formDecline[0].submit();
          }
        }
      });
    });
  });
</script>

<h2>
  <form id="form-decline" method="POST" action="waitlist" class="pull-right form-inline">
    <input type="hidden" name="decline_and_convert" value="1">
    <a href="../dealer_reports/waitlisted_group_info" class="btn btn-info">
      <span class="glyphicon glyphicon-download-alt"></span>
      Waitlisted {{ c.DEALER_TERM|title }} Report
    </a>
    <button type="submit" class="btn btn-danger">
      <span class="glyphicon glyphicon-repeat"></span>
      Decline & Convert
    </button>
  </form>
  Waitlisted {{ c.DEALER_TERM|title }}s
</h2>
<div class="clearfix"></div>
<table class="table table-striped datatable">
  <thead>
    <tr>
      <th>Name</th>
      <th>Approved</th>
      <th>Badges{{ macros.popup_link("../static_views/badgeCounts.html") }}</th>
      <th>Tables</th>
      <th>Cost</th>
      <th>Owed</th>
      <th>Paid</th>
      <th>Admin Notes</th>
    </tr>
  </thead>
  <tbody>
{% for group in groups %}
    <tr>
        <td style="text-align:left" data-order="{{ group.name }}" data-search="{{ group.name }}"> <a href="../group_admin/form?id={{ group.id }}">{{ group.name|default('?????', boolean=True) }}</a> </td>
        <td>
            {% if group.is_dealer %}
                {{ group.status_label }}
            {% else %}
                n/a
            {% endif %}
        </td>
        <td data-order="{{ group.badges_purchased }}" data-search="{{ group.badges_purchased }}"> {{ group.badges_purchased }} / {{ group.badges }} </td>
        <td>{{ group.tables }}</td>
        <td>{{ group.cost|format_currency }}</td>
        <td>{{ group.amount_unpaid|format_currency }}</td>
        <td>{{ (group.amount_paid / 100)|format_currency }}</td>
        <td>{{ group.admin_notes }}</td>
    </tr>
{% endfor %}
  </tbody>
  <caption align="bottom">
    <ul class="pagination"></ul>
{'fraction_non_alphanumeric': 0.19155019059720457, 'fraction_numerical': 0.004129606099110546, 'mean_word_length': 2.699764982373678, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1999535', 'n_tokens_mistral': 2175, 'n_tokens_neox': 2085, 'n_words': 452}