diff options
author | FOSSEE | 2016-06-17 14:29:40 +0530 |
---|---|---|
committer | FOSSEE | 2016-06-17 14:29:40 +0530 |
commit | b5652fa76a08bb7e5ce2a0cf8934589533315bab (patch) | |
tree | c68a830f6dc828270d37f60ab8fb2a9ec0ece826 /certificate/templates | |
parent | f3d5531b5823cf188e79a8d684924d5322e7a4ee (diff) | |
download | certificate-generator-b5652fa76a08bb7e5ce2a0cf8934589533315bab.tar.gz certificate-generator-b5652fa76a08bb7e5ce2a0cf8934589533315bab.tar.bz2 certificate-generator-b5652fa76a08bb7e5ce2a0cf8934589533315bab.zip |
esim workshop 2016 certificate
Diffstat (limited to 'certificate/templates')
-rw-r--r-- | certificate/templates/esim_workshop_download.html | 60 | ||||
-rw-r--r-- | certificate/templates/esim_workshop_feedback.html | 26 | ||||
-rwxr-xr-x | certificate/templates/index.html | 1 |
3 files changed, 87 insertions, 0 deletions
diff --git a/certificate/templates/esim_workshop_download.html b/certificate/templates/esim_workshop_download.html new file mode 100644 index 0000000..47b2674 --- /dev/null +++ b/certificate/templates/esim_workshop_download.html @@ -0,0 +1,60 @@ +{% extends 'base.html' %} +{% block header%} + <h1> eSim Workshop 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 User/Email</h4> + </div> + <div class="modal-body"> + {% if notregistered == 1 %} + Please enter a proper email address. + {% endif %} + </div> + </div> + </div> + </div> + <form class="col-lg-12" action="{% url 'certificate:esim_workshop_download' %}" method="post"> + {% csrf_token %} + {{ message }} + <hr> + <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">Download Certificate</button></span> + </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> + + <div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-labelledby="errorModalLabel" 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">Problem in downloading</h4> + </div> + <div class="modal-body"> + Sorry could not process your certificate. Kindly contact the FOSSEE team. + </div> + </div> + </div> + </div> +{% endblock %} + +{% block javascript %} +<script> + $(document).ready(function(){ + error = "{{ error }}" + if(error == "True"){ + $("#errorModal").modal(); + } + notreg = "{{ notregistered }}"; + if(notreg == "1"){ + $("#invalidModal").modal(); + } + }); +</script> +{% endblock %} diff --git a/certificate/templates/esim_workshop_feedback.html b/certificate/templates/esim_workshop_feedback.html new file mode 100644 index 0000000..416d0e1 --- /dev/null +++ b/certificate/templates/esim_workshop_feedback.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} + +{% block header%} + <h1> eSim Workshop 2016 </h1> +{% endblock %} +{% block content %} + <div style="width:50%; margin: 0 auto" > +<form action="{% url 'certificate:esim_workshop_feedback' %}" method="post"> + + <h1> Feedback </h1> + <p>Your feedback will help us improve our services. Thank you for your time.</p> + + {{ detail }} + {% csrf_token %} + <table class="table"> + {{ form }} + </table> + {% for question in questions %} + <label style="float:left">{{ forloop.counter }}. {{ question.question }} </label><br> + <textarea cols="80" class="form-control" id="{{ question.id }}" name="{{ question.id }}"></textarea><br> + {% endfor %} + <button style="float:left" class="btn btn-primary" type="submit">Submit</button> + <a style="float:right" href="{% url 'certificate:esim_workshop_download' %}" >Skip feedback and download</a> + </form> + </div> +{% endblock %} diff --git a/certificate/templates/index.html b/certificate/templates/index.html index 51f5bd1..cb9c716 100755 --- a/certificate/templates/index.html +++ b/certificate/templates/index.html @@ -7,6 +7,7 @@ <div style="margin:auto; width:45%"> <p>Below links will take you to a feedback form.<br> Please fill the feedback form and download your <b>e-certificate</b>.</h5></p> <ul class="nav nav-list"> + <li><a href="{% url 'certificate:esim_workshop_feedback' %}" >eSim Workshop 2016</a></li> <li><a href="{% url 'certificate:osdag_workshop_feedback' %}" >Osdag Workshop 2016</a></li> <li><a href="{% url 'certificate:openfoam_symposium_feedback_2016' %}" >OpenFOAM Symposium 2016</a></li> <li><a href="{% url 'certificate:fossee_internship_cerificate_download' %}" >Internship Certificate 2016</a></li> |