From c248f1bfa0a06db0d4c571ec8362e03b37322592 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 10 Apr 2015 15:46:17 +0530 Subject: Changes made to improve the interface. --- certificate/templates/base.html | 1 - certificate/templates/drupal_download.html | 6 +++--- certificate/templates/drupal_feedback.html | 4 ++-- certificate/templates/feedback.html | 4 ++-- certificate/templates/scipy_feedback.html | 4 ++-- certificate/views.py | 12 ++++++------ 6 files changed, 15 insertions(+), 16 deletions(-) diff --git a/certificate/templates/base.html b/certificate/templates/base.html index 86309cf..f87018d 100644 --- a/certificate/templates/base.html +++ b/certificate/templates/base.html @@ -26,7 +26,6 @@ {% endblock %} -
{% block content %} {% endblock %} diff --git a/certificate/templates/drupal_download.html b/certificate/templates/drupal_download.html index a93528c..fa40952 100644 --- a/certificate/templates/drupal_download.html +++ b/certificate/templates/drupal_download.html @@ -8,13 +8,13 @@ diff --git a/certificate/templates/drupal_feedback.html b/certificate/templates/drupal_feedback.html index 1d9d9c8..ca4a5c7 100644 --- a/certificate/templates/drupal_feedback.html +++ b/certificate/templates/drupal_feedback.html @@ -8,7 +8,7 @@

Feedback

-

Please fill the feedback form. This will greatly enable us to do better.

+

Your feedback will help us improve our services. Thank you for your time.<

{{ detail }} @@ -22,7 +22,7 @@
{% endfor %} - I have already submitted + Skip feedback and download
diff --git a/certificate/templates/feedback.html b/certificate/templates/feedback.html index 76c5abd..3964503 100644 --- a/certificate/templates/feedback.html +++ b/certificate/templates/feedback.html @@ -8,7 +8,7 @@

Feedback

-

Please fill the feedback form. This will greatly enable us to do better.

+

Your feedback will help us improve our services. Thank you for your time.

{{ detail }} @@ -22,7 +22,7 @@
{% endfor %} - I have already submitted + Skip feedback and download
diff --git a/certificate/templates/scipy_feedback.html b/certificate/templates/scipy_feedback.html index 1ec3f2c..12f2c4d 100644 --- a/certificate/templates/scipy_feedback.html +++ b/certificate/templates/scipy_feedback.html @@ -8,7 +8,7 @@

Feedback

-

Please fill the feedback form. This will greatly enable us to do better.

+

Your feedback will help us improve our services. Thank you for your time.

{{ detail }} @@ -22,7 +22,7 @@
{% endfor %} - I have already submitted + Skip feedback and download
diff --git a/certificate/views.py b/certificate/views.py index a8fa759..22119c3 100644 --- a/certificate/views.py +++ b/certificate/views.py @@ -94,7 +94,7 @@ def download(request): _clean_certificate_certificate(certificate_path, file_name) context['error'] = True return render_to_response('download.html', context, ci) - context['message'] = 'You can download the certificate' + context['message'] = '' return render_to_response('download.html', context, ci) def verification(serial, _type): @@ -110,7 +110,7 @@ def verification(serial, _type): certificate.save() purpose, year, type = _get_detail(serial_no) if type == 'P': - if purpose == 'Drupal Mumbai Camp': + if purpose == 'DrupalCamp Mumbai': drupal_user = Drupal_camp.objects.get(email=certificate.email) DAY = drupal_user.attendance if DAY == 1: @@ -145,7 +145,7 @@ def verification(serial, _type): certificate.save() purpose, year, type = _get_detail(serial) if type == 'P': - if purpose == 'Drupal Mumbai Camp': + if purpose == 'DrupalCamp Mumbai': drupal_user = Drupal_camp.objects.get(email=certificate.email) DAY = drupal_user.attendance if DAY == 1: @@ -193,7 +193,7 @@ def _get_detail(serial_no): elif serial_no[0:3] == 'SPC': purpose = 'SciPy India' elif serial_no[0:3] == 'DCM': - purpose = 'Drupal Mumbai Camp' + purpose = 'DrupalCamp Mumbai' if serial_no[3:5] == '14': year = '2014' @@ -489,7 +489,7 @@ def drupal_feedback(request): answer.save() feedback.answer.add(answer) feedback.save() - context['message'] = 'Thank you for the feedback. You can download your certificate.' + context['message'] = '' return render_to_response('drupal_download.html', context, ci) context['form'] = form @@ -574,7 +574,7 @@ def drupal_download(request): _clean_certificate_certificate(certificate_path, file_name) context['error'] = True return render_to_response('drupal_download.html', context, ci) - context['message'] = 'You can download the certificate' + context['message'] = '' return render_to_response('drupal_download.html', context, ci) -- cgit