diff options
author | King | 2016-08-19 12:13:22 +0530 |
---|---|---|
committer | GitHub | 2016-08-19 12:13:22 +0530 |
commit | a0af19d9fae7c7a00412f4f5efabb78c3e1f021c (patch) | |
tree | 20d6bf6e19e179b54ed7497f52793a6451d97fd9 | |
parent | 2a3832f87ac2adb33b0bbb1134842588751c208f (diff) | |
parent | 2fabeb2f03f89c2504c8899f87be775fc1f033ad (diff) | |
download | certificate-generator-a0af19d9fae7c7a00412f4f5efabb78c3e1f021c.tar.gz certificate-generator-a0af19d9fae7c7a00412f4f5efabb78c3e1f021c.tar.bz2 certificate-generator-a0af19d9fae7c7a00412f4f5efabb78c3e1f021c.zip |
Merge pull request #12 from komalsheth236/master
Internship Certificate
-rw-r--r-- | certificate/fossee_internship16_cerificate_template/template_FIC2016Pcertificate | 21 | ||||
-rwxr-xr-x | certificate/fossee_internship_cerificate_template/cer_bg_2.png | bin | 0 -> 408763 bytes | |||
-rw-r--r-- | certificate/fossee_internship_cerificate_template/cer_bg_internship.jpg | bin | 674174 -> 0 bytes | |||
-rw-r--r-- | certificate/fossee_internship_cerificate_template/cert_bg.jpg | bin | 688074 -> 0 bytes | |||
-rwxr-xr-x | certificate/fossee_internship_cerificate_template/fossee-logo.png | bin | 0 -> 19082 bytes | |||
-rw-r--r-- | certificate/fossee_internship_cerificate_template/template_FIC2016Pcertificate | 21 | ||||
-rw-r--r-- | certificate/templates/fossee_internship16_cerificate_download.html | 67 |
7 files changed, 109 insertions, 0 deletions
diff --git a/certificate/fossee_internship16_cerificate_template/template_FIC2016Pcertificate b/certificate/fossee_internship16_cerificate_template/template_FIC2016Pcertificate new file mode 100644 index 0000000..c040b96 --- /dev/null +++ b/certificate/fossee_internship16_cerificate_template/template_FIC2016Pcertificate @@ -0,0 +1,21 @@ +* certificate template + +** Usage + - To generate a PDF file type, + #+BEGIN_SRC sh + make $command + #+END_SRC sh + + - To clean the project + #+BEGIN_SRC sh + make clean + #+END_SRC sh + +** License + The tex file and all the images within this project are entirely + PRIVATE. It's usage outside the `Fossee Project` is an legal + offense and will be subject to suitable punishment by Indian law. + + +** Website + [[http://fossee.in]] diff --git a/certificate/fossee_internship_cerificate_template/cer_bg_2.png b/certificate/fossee_internship_cerificate_template/cer_bg_2.png Binary files differnew file mode 100755 index 0000000..3d40f70 --- /dev/null +++ b/certificate/fossee_internship_cerificate_template/cer_bg_2.png diff --git a/certificate/fossee_internship_cerificate_template/cer_bg_internship.jpg b/certificate/fossee_internship_cerificate_template/cer_bg_internship.jpg Binary files differdeleted file mode 100644 index 11acf0e..0000000 --- a/certificate/fossee_internship_cerificate_template/cer_bg_internship.jpg +++ /dev/null diff --git a/certificate/fossee_internship_cerificate_template/cert_bg.jpg b/certificate/fossee_internship_cerificate_template/cert_bg.jpg Binary files differdeleted file mode 100644 index 12dc367..0000000 --- a/certificate/fossee_internship_cerificate_template/cert_bg.jpg +++ /dev/null diff --git a/certificate/fossee_internship_cerificate_template/fossee-logo.png b/certificate/fossee_internship_cerificate_template/fossee-logo.png Binary files differnew file mode 100755 index 0000000..0f57874 --- /dev/null +++ b/certificate/fossee_internship_cerificate_template/fossee-logo.png diff --git a/certificate/fossee_internship_cerificate_template/template_FIC2016Pcertificate b/certificate/fossee_internship_cerificate_template/template_FIC2016Pcertificate new file mode 100644 index 0000000..c040b96 --- /dev/null +++ b/certificate/fossee_internship_cerificate_template/template_FIC2016Pcertificate @@ -0,0 +1,21 @@ +* certificate template + +** Usage + - To generate a PDF file type, + #+BEGIN_SRC sh + make $command + #+END_SRC sh + + - To clean the project + #+BEGIN_SRC sh + make clean + #+END_SRC sh + +** License + The tex file and all the images within this project are entirely + PRIVATE. It's usage outside the `Fossee Project` is an legal + offense and will be subject to suitable punishment by Indian law. + + +** Website + [[http://fossee.in]] diff --git a/certificate/templates/fossee_internship16_cerificate_download.html b/certificate/templates/fossee_internship16_cerificate_download.html new file mode 100644 index 0000000..4928c2e --- /dev/null +++ b/certificate/templates/fossee_internship16_cerificate_download.html @@ -0,0 +1,67 @@ +{% extends 'base.html' %} +{% block header%} + <h1> FOSSEE Internship Certificate</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:fossee_internship16_cerificate_download' %}" method="post"> + {% csrf_token %} + {{ message }} + <hr> + <input type="hidden" name="type" id="A" value="A" checked="True"> + <hr> + <div id ="paper"> + {% if user_project %} + <span><h3>Papers presented</h3><span> + <div class="radio" style="padding-left:350px;text-align:left"> + {% for user in user_project %} + <input type="hidden" name="paper" value="{{ user.project_title }}">{{ user.project_title }}<br> + {% endfor %} + </div> + {% endif %} + <input type="hidden" name="paper" value="{{ user.project_title }}">{{ user.project_title }}<br> + </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_project.0.email }}"; + } + $('#email').val(email); + notreg = "{{ notregistered }}"; + if(notreg == "1"){ + $("#invalidModal").modal(); + } + $("[name=type]").change(function(){ + $("#paper").remove(); + }); + }); +</script> +{% endblock %} |