Skip to content

Commit

Permalink
Update panel badges list
Browse files Browse the repository at this point in the history
Modernizes the list admins use to give panelists badges, and adds a column for whether or not they've confirmed the panel.
  • Loading branch information
kitsuta committed Jul 20, 2024
1 parent 8408199 commit a051c5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions uber/templates/panels_admin/badges.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ <h3>Panelists needing badges</h3>
The following is a list of panelists with accepted panels which are NOT marked as having a badge. You may use the
forms below to add badges for those without them OR associate these panelists with existing attendee records.

<table class="table table-striped">
<table class="table table-striped datatable">
<thead>
<tr>
<th>Panel</th>
<th>Confirmed?</th>
<th>Panelist Name</th>
<th>Panelist Email</th>
<th>Possible Matches</th>
Expand All @@ -49,19 +50,20 @@ <h3>Panelists needing badges</h3>
{% for pa, matches in applicants %}
<tr id="{{ pa.id }}">
<td><a href="app?id={{ pa.application.id }}">{{ pa.application.name }}</a></td>
<td>{{ pa.confirmed|datetime_local if pa.confirmed else "No" }}</td>
<td>{{ pa.full_name }}</td>
<td>{{ pa.email|email_to_link }}</td>
<td>
{% for attendee in matches %}
<p>
<button onClick="link('{{ pa.id }}', '{{ attendee.id }}')">Link</button>
<button class="btn btn-info" onClick="link('{{ pa.id }}', '{{ attendee.id }}')">Link</button>
{{ attendee|form_link }} [{{ attendee.badge }}] ({{ attendee.email }})
</p>
{% else %}
(no matching attendees)
{% endfor %}
</td>
<td><button onClick="create('{{ pa.id }}')">Add New Badge</button></td>
<td><button class="btn btn-primary" onClick="create('{{ pa.id }}')">Add New Badge</button></td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit a051c5f

Please sign in to comment.