summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
authorprathamesh2014-12-09 14:37:15 +0530
committerprathamesh2014-12-09 14:37:15 +0530
commit8233efece2f49f7cf91fd84db05474726615fd8e (patch)
treec0f3b965586d9a23418c5f66c60dd75257b04877 /certificate/templates
parent15e90ea25a7d7ba2075f69435acd0b9db2c9c8a5 (diff)
downloadcertificate-generator-8233efece2f49f7cf91fd84db05474726615fd8e.tar.gz
certificate-generator-8233efece2f49f7cf91fd84db05474726615fd8e.tar.bz2
certificate-generator-8233efece2f49f7cf91fd84db05474726615fd8e.zip
Added text at the bottom of the certificate.
Added javascript and modified view to handle multiple papers or workshop by one participant.
Diffstat (limited to 'certificate/templates')
-rw-r--r--certificate/templates/download.html15
1 files changed, 12 insertions, 3 deletions
diff --git a/certificate/templates/download.html b/certificate/templates/download.html
index bd0a2ac..7e6a14c 100644
--- a/certificate/templates/download.html
+++ b/certificate/templates/download.html
@@ -24,6 +24,7 @@
&nbsp;&nbsp;<input type="radio" name="type" id="W" value="W">Workshop
<hr>
<center>
+ <div id ="paper">
{% if user_papers %}
<span><h3>Papers presented</h3><span>
<div style="padding-left:350px;text-align:left">
@@ -31,15 +32,19 @@
<input type="radio" name="paper" value="{{ user.paper }}">{{ user.paper }}<br>
{% endfor %}
</div>
- {% endif %}
- {% if workshops %}
+ {% endif %}
+ </div>
+ <div id="workshop">
+ {% if workshops %}
<span><h3>Workshop Attended</h3><span>
<div style="text-align:left">
{% for user in workshops %}
<input type="radio" name="workshop" value="{{ user.workshops }}">{{ user.workshops }}<br>
{% endfor %}
</div>
- {% endif %}
+ {% endif %}
+
+ </div>
</center>
<div class="input-group" style="width:340px;text-align:center;margin:0 auto;">
<input style="width:450;" class="form-control input-lg" placeholder="Enter the email address you used for registration" type="text" id="email" name=email>
@@ -67,6 +72,10 @@
if(notreg == "1"){
$("#invalidModal").modal();
}
+ $("[name=type]").change(function(){
+ $("#paper").remove();
+ $("#workshop").remove();
+ });
});
</script>
{% endblock %}