summaryrefslogtreecommitdiff
path: root/certificate/templates
diff options
context:
space:
mode:
Diffstat (limited to 'certificate/templates')
-rw-r--r--certificate/templates/base.html23
-rw-r--r--certificate/templates/download.html12
-rw-r--r--certificate/templates/feedback.html3
-rw-r--r--certificate/templates/index.html16
-rw-r--r--certificate/templates/scipy_download.html66
-rw-r--r--certificate/templates/scipy_feedback.html32
-rw-r--r--certificate/templates/verify.html3
7 files changed, 149 insertions, 6 deletions
diff --git a/certificate/templates/base.html b/certificate/templates/base.html
index 7636e1f..86309cf 100644
--- a/certificate/templates/base.html
+++ b/certificate/templates/base.html
@@ -21,9 +21,11 @@
<div class="row">
- <div class="col-lg-12 text-center v-center">
+ <div class="col-lg-12 text-center v-center">
+ {% block header%}
- <h1>Scilab India Conference 2014</h1>
+ <!--<h1>Scilab India Conference 2014</h1>-->
+ {% endblock %}
<hr>
{% block content %}
{% endblock %}
@@ -31,7 +33,22 @@
</div> <!-- /row -->
<hr>
- <br>
+ <br>
+ <div id="footer-wrapper" class="container">
+ <div id="footer-inner" class="col-lg-12 col-md-12 col-sm-12">
+ <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>
+ </span>
+ <!--[if lte IE 8]></span><![endif]-->
+ 2013 <a href="http://fossee.in" target="_blank">fossee.in</a>
+ </div>
+ <div class="pull-right">
+ Developed at IIT Bombay
+ </div>
+ </div> <!-- /#footer-inner -->
+ </div> <!-- /#footer-wrapper -->
</div> <!-- /container full -->
</body>
</html>
diff --git a/certificate/templates/download.html b/certificate/templates/download.html
index 7e6a14c..00c2527 100644
--- a/certificate/templates/download.html
+++ b/certificate/templates/download.html
@@ -1,5 +1,7 @@
{% extends 'base.html' %}
-
+{% block header%}
+ <h1> Scilab India Conference 2014 </h1>
+{% endblock %}
{% block content %}
<div class="modal fade" id="invalidModal" tabindex="-1" role="dialog" aria-labelledby="invalidModalLabel" aria-hidden="true">
<div class="modal-dialog">
@@ -14,9 +16,13 @@
</div>
</div>
</div>
- <form class="col-lg-12" action="{% url 'certificate:download' %}" method="post">
+ <form class="col-lg-12" action="{% url 'certificate:download' %}" method="post">
{% csrf_token %}
- {{ message }}
+ {% if error %}
+ <p class="lead"> Sorry your certificate cannot be processed. Kindly contact the fossee team.<p>
+ {% else %}
+ {{ message }}
+ {% endif %}
<hr>
<p>Please choose the appropriate category</p>
<input type="radio" name="type" id="P" value="P" checked="True">Participant
diff --git a/certificate/templates/feedback.html b/certificate/templates/feedback.html
index e5c2183..76c5abd 100644
--- a/certificate/templates/feedback.html
+++ b/certificate/templates/feedback.html
@@ -1,5 +1,8 @@
{% extends 'base.html' %}
+{% block header%}
+ <h1> Scilab India Conference 2014 </h1>
+{% endblock %}
{% block content %}
<form action="{% url 'certificate:feedback' %}" method="post" style="width:1000px">
diff --git a/certificate/templates/index.html b/certificate/templates/index.html
new file mode 100644
index 0000000..fca36d5
--- /dev/null
+++ b/certificate/templates/index.html
@@ -0,0 +1,16 @@
+{% extends 'base.html' %}
+
+{% block header%}
+ <h1> FOSSEE Certificates </h1>
+{% endblock %}
+{% block content %}
+<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:feedback' %}" >Scilab India Conference 2014</a></li>
+ <li><a href="{% url 'certificate:scipy_feedback' %}" >SciPy India Conference 2014</a></li>
+ </ul>
+ <div>
+{% endblock %}
+
+
diff --git a/certificate/templates/scipy_download.html b/certificate/templates/scipy_download.html
new file mode 100644
index 0000000..5d4b834
--- /dev/null
+++ b/certificate/templates/scipy_download.html
@@ -0,0 +1,66 @@
+{% extends 'base.html' %}
+{% block header%}
+ <h1> SciPy India Conference 2014 </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' %}" 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>
+ <center>
+ <div id ="paper">
+ {% if user_papers %}
+ <span><h3>Papers presented</h3><span>
+ <div 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>
+ </center>
+ <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>
+{% endblock %}
+
+{% block javascript %}
+<script>
+ $(document).ready(function(){
+ value = "{{ v }}"
+ email = ""
+ 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.html b/certificate/templates/scipy_feedback.html
new file mode 100644
index 0000000..1ec3f2c
--- /dev/null
+++ b/certificate/templates/scipy_feedback.html
@@ -0,0 +1,32 @@
+{% extends 'base.html' %}
+
+{% block header%}
+ <h1> SciPy India Conference 2014 </h1>
+{% endblock %}
+{% block content %}
+<form action="{% url 'certificate:scipy_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:scipy_download' %}" >I have already submitted</a></span>
+ </div>
+ </div>
+ </form>
+ <hr>
+{% endblock %}
+
+
diff --git a/certificate/templates/verify.html b/certificate/templates/verify.html
index ad7cab1..3f3ac72 100644
--- a/certificate/templates/verify.html
+++ b/certificate/templates/verify.html
@@ -1,5 +1,8 @@
{% extends 'base.html' %}
+{% block header%}
+ <h1> Certificate Verification </h1>
+{% endblock %}
{% block content %}
<div class="modal fade" id="invalidModal" tabindex="-1" role="dialog" aria-labelledby="invalidModalLabel" aria-hidden="true">
<div class="modal-dialog">