2013-03-28 17:14:16 +04:00
{% extends 'layout.html' %}
{% set pageTitle = 'Claiming Badges' %}
2013-06-13 22:26:09 +04:00
{% set bodyClass = 'claim' %}
2013-03-28 20:42:32 +04:00
{% set navItem = 'claim' %}
2013-03-28 17:14:16 +04:00
{% block content %}
2013-05-30 00:39:24 +04:00
{% if badge %}
2013-06-19 20:12:32 +04:00
< div class = "row-fluid" >
2013-05-30 00:39:24 +04:00
< div class = "span4" >
< img src = "{{ badge.image }}" >
< / div >
< div class = "span8" >
< h3 > {{ badge.name }}< / h3 >
2013-06-19 20:12:32 +04:00
< p class = "description" > {{ badge.description }}< / p >
{% if code %}
< br >
< form method = "post" class = "form-horizontal text-center well" >
< input type = "hidden" name = "_csrf" value = "{{ csrfToken }}" >
< input type = "hidden" id = "input-code" name = "code" value = "{{ code }}" >
< button type = "submit" class = "btn btn-large" > Claim this badge< / button >
< / form >
{% else %}
{% endif %}
2013-05-30 00:39:24 +04:00
< / div >
< / div >
{% else %}
2013-06-19 20:12:32 +04:00
< p > To claim the badge you've earned, enter the "claim code" written on the paper badge you received from your teacher, counselor or mentor.< / p >
< p > Then hit the "Claim This Badge" button on your screen. Once you do this, the badge will be added to your My Badges page and you can throw the piece of paper away (or, better yet, recycle it!).< / p >
2013-03-28 20:42:32 +04:00
2013-05-30 00:39:24 +04:00
< h3 > Already have a claim code?< / h3 >
2013-06-07 21:24:56 +04:00
< form method = "get" class = "form-horizontal row-fluid" >
2013-06-17 07:10:49 +04:00
< fieldset class = "span12 well" >
2013-05-30 00:39:24 +04:00
< div class = "control-group" >
< label class = "control-label" for = "input-code" > Claim Code< / label >
< div class = "controls" >
2013-06-06 23:41:28 +04:00
< input type = "text" id = "input-code" name = "code" placeholder = "e.g. a4d1-d12b-54rf-ggcd" value = "{{ code }}" >
2013-05-30 00:39:24 +04:00
< / div >
< / div >
< div class = "control-group" >
< div class = "controls" >
2013-06-02 04:11:14 +04:00
< button type = "submit" class = "btn" > Claim this Badge< / button >
2013-05-30 00:39:24 +04:00
< / div >
< / div >
< / fieldset >
< / form >
{% endif %}
2013-06-02 04:11:14 +04:00
{% endblock %}