From feaa8d15760f96ce34f3a41cd07acfea992a6728 Mon Sep 17 00:00:00 2001 From: FOSSEE Date: Thu, 4 Aug 2016 14:58:08 +0530 Subject: Drupal Workshop Certificate Template --- certificate/models.py | 8 +- .../templates/drupal_workshop_download.html | 60 ++++++++++++ certificate/templates/index.html | 1 + certificate/urls.py | 2 +- certificate/views.py | 109 ++++++++++++++++++++- 5 files changed, 177 insertions(+), 3 deletions(-) create mode 100644 certificate/templates/drupal_workshop_download.html diff --git a/certificate/models.py b/certificate/models.py index 55a8979..5a28e04 100755 --- a/certificate/models.py +++ b/certificate/models.py @@ -12,7 +12,8 @@ events = ( ('OFC', 'OpenFOAM Symposium'), ('FIC', 'Fossee Internship'), ('OWS', 'Osdag Workshop'), - ('EWS', 'eSim Workshop') + ('EWS', 'eSim Workshop'), + ('DWS', 'Drupal Workshop'), ) class Profile(models.Model): @@ -158,6 +159,11 @@ class Osdag_WS(models.Model): email = models.EmailField() purpose = models.CharField(max_length=10, default='OWS') +class Drupal_WS(models.Model): + name = models.CharField(max_length=200) + email = models.EmailField() + purpose = models.CharField(max_length=10, default='DWS') + class eSim_WS(models.Model): name = models.CharField(max_length=200) email = models.EmailField() diff --git a/certificate/templates/drupal_workshop_download.html b/certificate/templates/drupal_workshop_download.html new file mode 100644 index 0000000..b35f70e --- /dev/null +++ b/certificate/templates/drupal_workshop_download.html @@ -0,0 +1,60 @@ +{% extends 'base.html' %} +{% block header%} +
Below links will take you to a feedback form.
Please fill the feedback form and download your e-certificate.