diff options
author | komalsheth286 | 2016-12-05 14:58:51 +0530 |
---|---|---|
committer | komalsheth286 | 2016-12-05 14:58:51 +0530 |
commit | d83652a55528be82c19a55414d2bbbc550d65c2f (patch) | |
tree | 661465a501ec06ee92a14f8266854d132ab2e5b2 /certificate/templates/scipy_download_2016.html | |
parent | 2bfc612262edf43790b3a3eac68b6daaa20828e1 (diff) | |
download | certificate-generator-d83652a55528be82c19a55414d2bbbc550d65c2f.tar.gz certificate-generator-d83652a55528be82c19a55414d2bbbc550d65c2f.tar.bz2 certificate-generator-d83652a55528be82c19a55414d2bbbc550d65c2f.zip |
SciPy India 2016 Certificate
Diffstat (limited to 'certificate/templates/scipy_download_2016.html')
-rw-r--r-- | certificate/templates/scipy_download_2016.html | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/certificate/templates/scipy_download_2016.html b/certificate/templates/scipy_download_2016.html new file mode 100644 index 0000000..9be110d --- /dev/null +++ b/certificate/templates/scipy_download_2016.html @@ -0,0 +1,92 @@ +{% extends 'base.html' %} +{% block header%} + <h1> SciPy India Conference 2016 </h1> +{% endblock %} +{% block content %} + <div class="modal fade" id="invalidModal" tabindex="-1" role="dialog" aria-labelledby="invalidModalLabel" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> + <h4 class="modal-title" id="invalidModalLabel">Invalid Category</h4> + </div> + <div class="modal-body"> + The requested certificate is unavailable for your email address. Please select the appropriate category and retry. + </div> + </div> + </div> + </div> + <form class="col-lg-12" action="{% url 'certificate:scipy_download_2016' %}" method="post"> + {% csrf_token %} + {{ message }} + <hr> + <p>Please choose the appropriate category</p> + <input type="radio" name="type" id="P" value="P" checked="True">Participant + <input type="radio" name="type" id="A" value="A">Speaker + <input type="radio" name="type" id="W" value="W">Workshop Instructor + <hr> + <div id ="paper"> + {% if user_papers %} + <span><h3>Papers presented</h3><span> + <div class="radio" style="padding-left:350px;text-align:left"> + {% for user in user_papers %} + <input type="radio" name="paper" value="{{ user.paper }}">{{ user.paper }}<br> + {% endfor %} + </div> + {% endif %} + </div> + <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> + <span class="input-group-btn"><button class="btn btn-lg btn-primary" type="submit" id = 'myBtn' data-toggle = "modal">Mail Certificate</button></span> + <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h4 class="modal-title" id="myModalLabel">Certificate Instructions</h4> + + </div> + <div class="modal-body"><ol style="text-align:left"><li>Instructions to be added here</li> + <li>Instructions regarding certificates</li> + <li>Add the contents</li> + </ol></div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">Ok</button> + </div> + </div> + </div> + </form> + <center><h4>Problem in downloading the certificate? Write to us at <a href="mailto:certificates@fossee.in">certificates[at]fossee[dot]in</a></h4> +{% endblock %} + +{% block javascript %} +<script> + $(document).ready(function(){ + value = "{{ v }}" + email = "" + error = "{{ error }}" + if(error == "True"){ + $("#invalidModal").modal(); + } + if(value == "paper"){ + $('#A').prop('checked', true) + email = "{{ user_papers.0.email }}"; + } + $('#email').val(email); + notreg = "{{ notregistered }}"; + if(notreg == "1"){ + $("#invalidModal").modal(); + } + $("[name=type]").change(function(){ + $("#paper").remove(); + }); + }); +</script> +<script> +$(document).ready(function () { + + $("#myBtn").click(function(){ + $('#myModal').modal('show'); + }); +});</script> +{% endblock %} |