summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
Diffstat (limited to 'certificate/templates')
-rw-r--r--certificate/templates/index.html1
-rw-r--r--certificate/templates/scipy_download_2015.html68
-rw-r--r--certificate/templates/scipy_feedback_2015.html26
3 files changed, 95 insertions, 0 deletions
diff --git a/certificate/templates/index.html b/certificate/templates/index.html
index bed74b5..49669d1 100644
--- 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_2015' %}" >SciPy India Conference 2015</a></li>
<li><a href="{% url 'certificate:esim_google_feedback' %}" >eSim Faculty Meet 2015</a></li>
<li><a href="{% url 'certificate:arduino_google_feedback' %}" >Scilab Arduino Workshop 2015</a></li>
<li><a href="{% url 'certificate:dwsim_feedback' %}" >DWSIM Workshop 2015</a></li>
diff --git a/certificate/templates/scipy_download_2015.html b/certificate/templates/scipy_download_2015.html
new file mode 100644
index 0000000..3448cef
--- /dev/null
+++ b/certificate/templates/scipy_download_2015.html
@@ -0,0 +1,68 @@
+{% extends 'base.html' %}
+{% block header%}
+ <h1> SciPy India Conference 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">&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_2015' %}" 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
+ <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">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>
+{% 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>
+{% endblock %}
diff --git a/certificate/templates/scipy_feedback_2015.html b/certificate/templates/scipy_feedback_2015.html
new file mode 100644
index 0000000..c485b40
--- /dev/null
+++ b/certificate/templates/scipy_feedback_2015.html
@@ -0,0 +1,26 @@
+{% extends 'base.html' %}
+
+{% block header%}
+ <h1> SciPy India Conference 2015 </h1>
+{% endblock %}
+{% block content %}
+ <div style="width:50%; margin: 0 auto" >
+<form action="{% url 'certificate:scipy_feedback_2015' %}" 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:scipy_download_2015' %}" >Skip feedback and download</a>
+ </form>
+ </div>
+{% endblock %}