diff options
Diffstat (limited to 'certificate/templates')
-rw-r--r-- | certificate/templates/drupal_download.html | 66 | ||||
-rw-r--r-- | certificate/templates/drupal_feedback.html | 32 | ||||
-rw-r--r-- | certificate/templates/index.html | 1 | ||||
-rw-r--r-- | certificate/templates/verify.html | 19 |
4 files changed, 117 insertions, 1 deletions
diff --git a/certificate/templates/drupal_download.html b/certificate/templates/drupal_download.html new file mode 100644 index 0000000..a93528c --- /dev/null +++ b/certificate/templates/drupal_download.html @@ -0,0 +1,66 @@ +{% extends 'base.html' %} +{% block header%} + <h1> Drupal Camp Mumbai 2015 </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"> + {% if notregistered == 1 %} + The requested certificate is unavailable for your email address. Please select the appropriate category and retry. + {% else %} + The user has not attended the Drupal Camp Mumbai 2015. + {% endif %} + </div> + </div> + </div> + </div> + <form class="col-lg-12" action="{% url 'certificate:drupal_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:info@fossee.in">info[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"){ + console.log("edfed") + $("#errorModal").modal(); + } + notreg = "{{ notregistered }}"; + if(notreg == "1"){ + $("#invalidModal").modal(); + } + if(notreg == "2"){ + $("#invalidModal").modal(); + } + }); +</script> +{% endblock %} diff --git a/certificate/templates/drupal_feedback.html b/certificate/templates/drupal_feedback.html new file mode 100644 index 0000000..1d9d9c8 --- /dev/null +++ b/certificate/templates/drupal_feedback.html @@ -0,0 +1,32 @@ +{% extends 'base.html' %} + +{% block header%} + <h1> Drupal Mumbai Camp 2015 </h1> +{% endblock %} +{% block content %} +<form action="{% url 'certificate:drupal_feedback' %}" method="post" style="width:1000px"> + + <div style="padding-left:100px;width:940px;text-align:center;margin:0 auto;"> + <div align=center style="padding-left:200px"> <h1> Feedback </h1> + <p>Please fill the feedback form. This will greatly enable us to do better.</p> + </div> + + {{ detail }} + {% csrf_token %} + <div style="padding-left:200px;text-align:left;" > + <table class="table"> + {{ form }} + </table> + {% for question in questions %} + <label>{{ forloop.counter }}. {{ question.question }} </label><br> + <textarea cols="80" class="form-control" id="{{ question.id }}" name="{{ question.id }}"></textarea><br> + {% endfor %} + <span><button class="btn btn-primary" type="submit">Submit</button></span> + <span style="float:right"><a href="{% url 'certificate:drupal_download' %}" >I have already submitted</a></span> + </div> + </div> + </form> + <hr> +{% endblock %} + + diff --git a/certificate/templates/index.html b/certificate/templates/index.html index fca36d5..9c3816c 100644 --- a/certificate/templates/index.html +++ b/certificate/templates/index.html @@ -9,6 +9,7 @@ <ul class="nav nav-list"> <li ><a href="{% url 'certificate:feedback' %}" >Scilab India Conference 2014</a></li> <li><a href="{% url 'certificate:scipy_feedback' %}" >SciPy India Conference 2014</a></li> + <li><a href="{% url 'certificate:drupal_feedback' %}" >Drupal Camp Mumbai 2015</a></li> </ul> <div> {% endblock %} diff --git a/certificate/templates/verify.html b/certificate/templates/verify.html index 3f3ac72..a4ce037 100644 --- a/certificate/templates/verify.html +++ b/certificate/templates/verify.html @@ -4,6 +4,22 @@ <h1> Certificate Verification </h1> {% endblock %} {% block content %} +{% if serial_key %} +<div> + <table class="table table-bordered" align="center" style="width:50%"> + <caption>Participation Details</caption> + <tbody> + {% for key, value in detail.items %} + <tr> + <td>{{ key }}</td> + <td>{{ value }}</td> + </tr> + {% endfor %} + </tbody> + </table> + <div style="width:40%"><a href="{% url 'certificate:verify' %}" >< Back</a></div> +</div> +{% else %} <div class="modal fade" id="invalidModal" tabindex="-1" role="dialog" aria-labelledby="invalidModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> @@ -17,7 +33,7 @@ </div> </div> </div> - <p>Enter the serial number you received while scanning the QR code on certificate.</p> + <p><b> Enter the alphanumeric characters below the QR code<br> OR <br>Enter the serial number you received while scanning the QR code on certificate</p> <hr> <form action="{% url 'certificate:verify' %}" method="post"> {{ detail }} @@ -26,6 +42,7 @@ <input class="form-control input-lg" placeholder="Enter the serial number" type="text" name=serial_no> <span class="input-group-btn"><button class="btn btn-lg btn-primary" type="submit">Verify</button></span> </div> +{% endif %} </form> <hr> <center><h4>Problem in verfying details ? write to us at <a href="mailto:info@fossee.in">info[at]fossee[dot]in</a></h4> |