-
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.
addressed comments - made the template more consistent & fixed the is…
…_ajax depreceation issue
- Loading branch information
1 parent
f807fc8
commit 879a047
Showing
7 changed files
with
47 additions
and
16 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
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
37 changes: 37 additions & 0 deletions
37
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,37 @@ | ||
<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 not event.has_ended %} | ||
<form class="manage-cohost" action="{% url 'manage_co_hosts' %}"> | ||
{% csrf_token %} | ||
<input type="text" name="event" value="{{ event.slug }}" hidden> | ||
<input type="text" name="participant" value="{{ participant.id }}" hidden> | ||
{% if participant.is_cohost %} | ||
<input type="submit" value="Remove cohost" class="btn btn-sm btn-danger"> | ||
{% else %} | ||
<input type="submit" value="Make cohost" class="btn btn-sm btn-success"> | ||
{% endif %} | ||
</form> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</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
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