diff options
author | prathamesh | 2014-12-06 16:49:20 +0530 |
---|---|---|
committer | prathamesh | 2014-12-06 16:49:20 +0530 |
commit | 1035cb5d0230566501ea2b974611f9c5867325e9 (patch) | |
tree | d2fa849ff73cbee7d6f5c0cf6b4a70056599b2c9 /certificate/templates | |
parent | 0d23702ac00aa9d3b9bdce3d8fbde5175ea4d468 (diff) | |
download | certificate-generator-1035cb5d0230566501ea2b974611f9c5867325e9.tar.gz certificate-generator-1035cb5d0230566501ea2b974611f9c5867325e9.tar.bz2 certificate-generator-1035cb5d0230566501ea2b974611f9c5867325e9.zip |
Feedback form added
Diffstat (limited to 'certificate/templates')
-rw-r--r-- | certificate/templates/download.html | 4 | ||||
-rw-r--r-- | certificate/templates/feedback.html | 26 | ||||
-rw-r--r-- | certificate/templates/verify.html | 2 |
3 files changed, 29 insertions, 3 deletions
diff --git a/certificate/templates/download.html b/certificate/templates/download.html index e23695e..32dab33 100644 --- a/certificate/templates/download.html +++ b/certificate/templates/download.html @@ -14,9 +14,9 @@ </div> </div> </div> - <form class="col-lg-12" action="" method="post"> + <form class="col-lg-12" action="{% url 'certificate:download' %}" method="post"> {% csrf_token %} - {{ error }} + {{ message }} <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">Get Certificate</button></span> diff --git a/certificate/templates/feedback.html b/certificate/templates/feedback.html new file mode 100644 index 0000000..c5a40ac --- /dev/null +++ b/certificate/templates/feedback.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} + +{% block content %} + <form action="{% url 'certificate:feedback' %}" method="post"> + <p>Please fill in the feedback form. This will greatly enable us to do better.</p> + {{ detail }} + {% csrf_token %} + <div style="padding-left:100px;text-align:left;" > + <div> + <table class="table"> + {{ form }} + </table> + {% for question in questions %} + <tr> + <label>Q{{ forloop.counter }}. {{ question.question }} <br> + <textarea class="form-control" cols="80" id="{{ question.id }}" name="{{ question.id }}"></textarea><br> + </tr> + {% endfor %} + </table> + <span><button class="btn btn-lg btn-primary" type="submit">Submit</button></span> + <span><a href="{% url 'certificate:download' %}" class="btn btn-lg btn-primary" >Skip</a></span> + </form> + <hr> +{% endblock %} + + diff --git a/certificate/templates/verify.html b/certificate/templates/verify.html index 8b215c7..ad7cab1 100644 --- a/certificate/templates/verify.html +++ b/certificate/templates/verify.html @@ -16,7 +16,7 @@ </div> <p>Enter the serial number you received while scanning the QR code on certificate.</p> <hr> - <form action="" method="post"> + <form action="{% url 'certificate:verify' %}" method="post"> {{ detail }} {% csrf_token %} <div class="input-group" style="width:340px;text-align:center;margin:0 auto;"> |