2013-03-28 17:14:16 +04:00
{% extends 'layout.html' %}
{% set pageTitle = 'Claiming Badges' %}
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 %}
< div class = "row" >
< div class = "span4" >
< img src = "{{ badge.image }}" >
< / div >
< div class = "span8" >
< h3 > {{ badge.name }}< / h3 >
< form method = "post" class = "form-horizontal well" >
< input type = "hidden" name = "_csrf" value = "{{ csrfToken }}" >
< input type = "hidden" id = "input-code" name = "code" value = "{{ code }}" >
< fieldset >
< div class = "control-group" >
< div class = "controls" >
< button type = "submit" class = "btn" > Claim this badge< / button >
< / div >
< / div >
< / fieldset >
< / form >
< / div >
< / div >
{% else %}
2013-06-02 04:11:14 +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 >
2013-06-06 00:43:45 +04:00
< 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 >
< form method = "get" class = "form-horizontal well span6 offset3" >
< fieldset >
< 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 %}