summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
Diffstat (limited to 'certificate/templates')
-rw-r--r--certificate/templates/base.html4
-rw-r--r--certificate/templates/dwsim_download.html60
-rw-r--r--certificate/templates/dwsim_feedback.html32
-rw-r--r--certificate/templates/index.html2
4 files changed, 96 insertions, 2 deletions
diff --git a/certificate/templates/base.html b/certificate/templates/base.html
index f87018d..9d4284d 100644
--- a/certificate/templates/base.html
+++ b/certificate/templates/base.html
@@ -38,10 +38,10 @@
<div class="pull-left">
<!--[if lte IE 8]><span style="filter: FlipH; -ms-filter: "FlipH"; display: inline-block;"><![endif]-->
<span style="-moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); display: inline-block;">
- <a href="http://www.gnu.org/copyleft/" target="_blank">&copy;</a>
+ <!--<a href="http://www.gnu.org/copyleft/" target="_blank">&copy;</a>-->
</span>
<!--[if lte IE 8]></span><![endif]-->
- 2013 <a href="http://fossee.in" target="_blank">fossee.in</a>
+ <!--2013 <a href="http://fossee.in" target="_blank">fossee.in</a>-->
</div>
<div class="pull-right">
Developed at IIT Bombay
diff --git a/certificate/templates/dwsim_download.html b/certificate/templates/dwsim_download.html
new file mode 100644
index 0000000..fdc2c54
--- /dev/null
+++ b/certificate/templates/dwsim_download.html
@@ -0,0 +1,60 @@
+{% extends 'base.html' %}
+{% block header%}
+ <h1> DWSIM Workshop 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 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:dwsim_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">&times;</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/dwsim_feedback.html b/certificate/templates/dwsim_feedback.html
new file mode 100644
index 0000000..5fc590d
--- /dev/null
+++ b/certificate/templates/dwsim_feedback.html
@@ -0,0 +1,32 @@
+{% extends 'base.html' %}
+
+{% block header%}
+ <h1> DWSIM Workshop 2015 </h1>
+{% endblock %}
+{% block content %}
+<form action="{% url 'certificate:dwsim_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>Your feedback will help us improve our services. Thank you for your time.</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:dwsim_download' %}" >Skip feedback and download</a></span>
+ </div>
+ </div>
+ </form>
+ <hr>
+{% endblock %}
+
+
diff --git a/certificate/templates/index.html b/certificate/templates/index.html
index 9c3816c..584bded 100644
--- a/certificate/templates/index.html
+++ b/certificate/templates/index.html
@@ -10,6 +10,8 @@
<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>
+ <li><a href="{% url 'certificate:tbc_freeeda_download' %}" >FreeEDA Textbook Companion</a></li>
+ <li><a href="{% url 'certificate:dwsim_feedback' %}" >DWSIM Workshop 2015</a></li>
</ul>
<div>
{% endblock %}