-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1923 from T-CAIREM/au/event/feature/show_inactive…
…_participants Events: show inactive participants to host and Admin
- Loading branch information
Showing
7 changed files
with
287 additions
and
100 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
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
36 changes: 36 additions & 0 deletions
36
physionet-django/events/templates/events/event_applications.html
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,36 @@ | ||
{% load participation_status %} | ||
<div class="tab-content" id="nav-tabContent"> | ||
<div class="tab-pane fade show active" id="{{ info.id }}" role="tabpanel" aria-labelledby="{{ option.id }}-tab"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered"> | ||
<thead> | ||
<tr> | ||
<th>Username</th> | ||
<th>Full name</th> | ||
<th>Email</th> | ||
<th>Credentialed</th> | ||
<th>Cohost</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for object in info.objects %} | ||
<tr> | ||
<td>{{ object.user.username }}</td> | ||
<td>{{ object.user.get_full_name }}</td> | ||
<td>{{ object.user.email }}</td> | ||
<td>{{ object.comment_to_applicant }}</td> | ||
<td>{{ object.decision_datetime | date }}</td> | ||
<td> | ||
{% if object.is_cohost %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ object.id }}" disabled checked> | ||
{% else %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ object.id }}" disabled> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> |
65 changes: 35 additions & 30 deletions
65
physionet-django/events/templates/events/event_entries.html
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 |
---|---|---|
@@ -1,30 +1,35 @@ | ||
<div class="table-responsive"> | ||
<table class="table table-bordered"> | ||
<thead> | ||
<tr> | ||
<th>Username</th> | ||
<th>Full name</th> | ||
<th>Email</th> | ||
<th>Credentialed</th> | ||
<th>Cohost</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for participant in event.participants.all %} | ||
<tr> | ||
<td>{{ participant.user.username }}</td> | ||
<td>{{ participant.user.get_full_name }}</td> | ||
<td>{{ participant.user.email }}</td> | ||
<td>{{ participant.user.get_credentialing_status }}</td> | ||
<td> | ||
{% if participant.is_cohost %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ participant.id }}" disabled checked> | ||
{% else %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ participant.id }}" disabled> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% load participation_status %} | ||
<div class="tab-content" id="nav-tabContent"> | ||
<div class="tab-pane fade show active" id="active-participant" role="tabpanel" aria-labelledby="active-participant-tab"> | ||
<div class="table-responsive"> | ||
<table class="table table-bordered"> | ||
<thead> | ||
<tr> | ||
<th>Username</th> | ||
<th>Full name</th> | ||
<th>Email</th> | ||
<th>Credentialed</th> | ||
<th>Cohost</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for participant in event.participants.all %} | ||
<tr> | ||
<td>{{ participant.user.username }}</td> | ||
<td>{{ participant.user.get_full_name }}</td> | ||
<td>{{ participant.user.email }}</td> | ||
<td>{{ participant.user.is_credentialed }}</td> | ||
<td> | ||
{% if participant.is_cohost %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ participant.id }}" disabled checked> | ||
{% else %} | ||
<input type="checkbox" name="toggle-cohost-status" event-slug="{{ event.slug }}" value="{{ participant.id }}" disabled> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.