This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Views
- Loading branch information
1 parent
6a33d69
commit 897e772
Showing
5 changed files
with
118 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends 'admin/base.html' %} | ||
{% block 'main' %} | ||
|
||
<ul> | ||
{% for badge in badges %} | ||
<li> | ||
<a href="/admin/badge/{{ badge.shortname }}">{{ badge.name }}</a> | ||
({{ badge.shortname }}) | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
|
||
|
||
{% 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
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,6 @@ | ||
{% extends 'admin/base.html' %} | ||
{% block 'main' %} | ||
<div> | ||
hi | ||
</div> | ||
{% 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,55 @@ | ||
{% extends 'admin/base.html' %} | ||
|
||
{% block 'extra_head' %} | ||
<script src="/js/admin.js"></script> | ||
{% endblock %} | ||
|
||
{% block 'main' %} | ||
<div class="row"> | ||
<div class="span8"> | ||
<h2>{{ badge.name }}</h2> | ||
<dl> | ||
<dt>Shortname</dt> | ||
<dd>{{ badge.shortname }}</dd> | ||
|
||
<dt>Description</dt> | ||
<dd>{{ badge.description }}</dd> | ||
</dl> | ||
</div><!--end badge creation span--> | ||
|
||
|
||
<div class="span4"> | ||
<h3>Triggers</h3> | ||
<ul id="triggers"> | ||
</ul> | ||
<p id="no_triggers">None!<p> | ||
</div><!--end trigger list span--> | ||
</div><!--end row 1--> | ||
|
||
<form> | ||
<legend>What triggers this badge?</legend> | ||
<div> | ||
<label>Trigger Description | ||
<input type="text" placeholder="The user clicks the red button"/> | ||
</label> | ||
<span class="help-block">Describe the action the user takes to earn this badge, keep it short!</span> | ||
</div> | ||
|
||
<div> | ||
<label>Trigger Tag | ||
<input type="text" placeholder="red_button"/> | ||
</label> | ||
<span class="help-block">The tag the js library passes to Clopenbadger, no spaces or special characters please!</span> | ||
</div> | ||
|
||
<div> | ||
<label>Trigger Count | ||
<input type="text" placeholder="5"/> | ||
</label> | ||
<span class="help-block">The number of times the user needs to activate this trigger before the badge is awarded</span> | ||
</div> | ||
|
||
<button id="create-trigger" type="submit" class="btn">Add this behavior</button> | ||
</form> | ||
|
||
{% endblock %} |