This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
242 additions
and
22 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
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,23 @@ | ||
{% extends "admin/base.html" %} | ||
{% block content %} | ||
{% if allowed %} | ||
<header id="grp-content-title"> | ||
<h1>Are you sure?</h1> | ||
</header> | ||
<div id="grp-content-container"> | ||
<div class="grp-group"> | ||
<h2>Are you sure you want to award {{ scenario.name }} badge to {{ participant.learner.first_name }} {{ participant.learner.last_name }} ({{ participant.learner.mobile }})?</h2> | ||
</div> | ||
<form name="award_badge" action="" method="post"> | ||
{% csrf_token %} | ||
<input class="grp-button grp-default" type="submit" name="award_yes" value="Yes"> | ||
<a class="grp-button grp-cancel-link" href="/admin/auth/learner/{{ participant.learner.id }}">No</a> | ||
</form> | ||
</div> | ||
{% else %} | ||
<header id="grp-content-title"> | ||
<h1>{{ scenario.name }} badge cannot be awarded multiple times.</h1> | ||
</header> | ||
<a class="grp-button grp-default" href="/admin/auth/learner/{{ participant.learner.id }}">Back</a> | ||
{% endif %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="grp-module aligned "> | ||
<h2>Badges</h2> | ||
<table style="width:100%;"> | ||
{% for scenario_row in scenario_list %} | ||
<tr> | ||
{% for scenario in scenario_row %} | ||
<td> | ||
<a href="/award_badge/{{ object_id }}/{{ scenario.scenario.id }}"> | ||
<img width="10" height="10" src="/static/admin/img/icon_addlink.gif"> {{ scenario.scenario.name }} ({{ scenario.scenario_count }}) | ||
</a> | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</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
Oops, something went wrong.