summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
Diffstat (limited to 'certificate/templates')
-rwxr-xr-xcertificate/templates/index.html1
-rw-r--r--certificate/templates/scipy_download_2016.html90
-rw-r--r--certificate/templates/scipy_feedback_2016.html16
3 files changed, 107 insertions, 0 deletions
diff --git a/certificate/templates/index.html b/certificate/templates/index.html
index f95c3e9..b2b8062 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:scipy_feedback_2016' %}" >SciPy India Conference 2016</a></li>
<li><a href="{% url 'certificate:drupal_workshop_download' %}" >Drupal Workshop 2016</a></li>
<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>
diff --git a/certificate/templates/scipy_download_2016.html b/certificate/templates/scipy_download_2016.html
new file mode 100644
index 0000000..29e42e1
--- /dev/null
+++ b/certificate/templates/scipy_download_2016.html
@@ -0,0 +1,90 @@
+{% 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">&times;</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
+ &nbsp;&nbsp;<input type="radio" name="type" id="A" value="A">Speaker
+ &nbsp;&nbsp;<input type="radio" name="type" id="W" value="W">Workshop Instructor
+ &nbsp;&nbsp;<input type="radio" name="type" id="T" value="T">TA
+ <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"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
+ <h4 class="modal-title" id="myModalLabel">Certificate Mailed</h4>
+
+ </div>
+ <div class="modal-body">The certificate is mailed to your email id.</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(error == "False"){
+ $("#myModal").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>
+{% endblock %}
diff --git a/certificate/templates/scipy_feedback_2016.html b/certificate/templates/scipy_feedback_2016.html
new file mode 100644
index 0000000..5293418
--- /dev/null
+++ b/certificate/templates/scipy_feedback_2016.html
@@ -0,0 +1,16 @@
+{% extends 'base.html' %}
+
+{% block header %}
+ <h1> SciPy India Conference 2016 </h1>
+{% endblock %}
+
+{% block content %}
+<p> Your feedback will help us improve our services. Thank you for your time. </p>
+ <div>
+ <div class="embed-responsive embed-responsive-16by9" style="width:100%;height:2000px">
+ <iframe class="embed-responsive-item" src="https://docs.google.com/forms/d/e/1FAIpQLSc58NmRJFBtfdrkbDXCTcIX8IszHhqeOO5vPlmyLgxGJLJ8Yw/viewform"></iframe>
+ </div>
+ <br>
+ <a class="btn" style="float:right" href = "{% url 'certificate:scipy_download_2016' %}">Click here to download certificate</a>
+ </div>
+{% endblock %}