summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
authorprathamesh2015-04-27 16:33:44 +0530
committerprathamesh2015-04-27 16:33:44 +0530
commit0c184765ff5c332109b9e53510a92689d6d46604 (patch)
tree6184cbb19a549672e188ab50971b3b0a55e62b4f /certificate/templates
parentc248f1bfa0a06db0d4c571ec8362e03b37322592 (diff)
downloadcertificate-generator-0c184765ff5c332109b9e53510a92689d6d46604.tar.gz
certificate-generator-0c184765ff5c332109b9e53510a92689d6d46604.tar.bz2
certificate-generator-0c184765ff5c332109b9e53510a92689d6d46604.zip
Added interface for freeeda textbook companion certificate download.
Diffstat (limited to 'certificate/templates')
-rw-r--r--certificate/templates/download.html2
-rw-r--r--certificate/templates/drupal_download.html2
-rw-r--r--certificate/templates/scipy_download.html2
-rw-r--r--certificate/templates/tbc_freeeda_download.html59
-rw-r--r--certificate/templates/verify.html2
5 files changed, 63 insertions, 4 deletions
diff --git a/certificate/templates/download.html b/certificate/templates/download.html
index 00c2527..6d808c9 100644
--- a/certificate/templates/download.html
+++ b/certificate/templates/download.html
@@ -57,7 +57,7 @@
<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>
+ <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 %}
diff --git a/certificate/templates/drupal_download.html b/certificate/templates/drupal_download.html
index fa40952..8b3baac 100644
--- a/certificate/templates/drupal_download.html
+++ b/certificate/templates/drupal_download.html
@@ -29,7 +29,7 @@
<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>
+ <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">
diff --git a/certificate/templates/scipy_download.html b/certificate/templates/scipy_download.html
index 5d4b834..f8da891 100644
--- a/certificate/templates/scipy_download.html
+++ b/certificate/templates/scipy_download.html
@@ -41,7 +41,7 @@
<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>
+ <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 %}
diff --git a/certificate/templates/tbc_freeeda_download.html b/certificate/templates/tbc_freeeda_download.html
new file mode 100644
index 0000000..92c6585
--- /dev/null
+++ b/certificate/templates/tbc_freeeda_download.html
@@ -0,0 +1,59 @@
+{% extends 'base.html' %}
+{% block header%}
+ <h1> FreeEDA Textbook Companion </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:tbc_freeeda_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/verify.html b/certificate/templates/verify.html
index a4ce037..f70a20d 100644
--- a/certificate/templates/verify.html
+++ b/certificate/templates/verify.html
@@ -45,7 +45,7 @@
{% 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>
+ <center><h4>Problem in verfying details ? write to us at <a href="mailto:certificates@fossee.in">certificates[at]fossee[dot]in</a></h4>
{% endblock %}
{% block javascript %}