diff options
Diffstat (limited to 'certificate/templates')
-rw-r--r-- | certificate/templates/index.html | 1 | ||||
-rw-r--r-- | certificate/templates/openfoam_symposium_download_2016.html | 68 | ||||
-rw-r--r-- | certificate/templates/openfoam_symposium_feedback_2016.html | 16 |
3 files changed, 85 insertions, 0 deletions
diff --git a/certificate/templates/index.html b/certificate/templates/index.html index 49669d1..363ae40 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:openfoam_symposium_feedback_2016' %}" >OpenFOAM Symposium 2016</a></li> <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> diff --git a/certificate/templates/openfoam_symposium_download_2016.html b/certificate/templates/openfoam_symposium_download_2016.html new file mode 100644 index 0000000..03ad759 --- /dev/null +++ b/certificate/templates/openfoam_symposium_download_2016.html @@ -0,0 +1,68 @@ +{% extends 'base.html' %} +{% block header%} + <h1> OpenFOAM Symposium 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">×</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:openfoam_symposium_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 + <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/openfoam_symposium_feedback_2016.html b/certificate/templates/openfoam_symposium_feedback_2016.html new file mode 100644 index 0000000..7535715 --- /dev/null +++ b/certificate/templates/openfoam_symposium_feedback_2016.html @@ -0,0 +1,16 @@ +{% extends 'base.html' %} + +{% block header %} + <h1> OpenFOAM Symposium 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:1900px"> + <iframe class="embed-responsive-item" src="https://docs.google.com/forms/d/1UluRhZu6-sA1AGgmx8q90Q1jzeG6t928VLdtJ_NTjMM/viewform"></iframe> + </div> + <br> + <a class="btn" style="float:right" href = "{% url 'certificate:openfoam_symposium_download_2016' %}">Click here to download certificate</a> + </div> +{% endblock %} |