From b2e434300abb0f1d0fbcaaea6ec79104231566c7 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 23 Dec 2014 11:09:23 +0100 Subject: [PATCH] Add Terms and Conditions page template --- booking/templates/booking/terms.html | 5 +++++ booking/templates/front_template.html | 1 + booking/tests.py | 4 ++++ booking/urls.py | 5 +++++ 4 files changed, 15 insertions(+) create mode 100644 booking/templates/booking/terms.html diff --git a/booking/templates/booking/terms.html b/booking/templates/booking/terms.html new file mode 100644 index 0000000..dfb2550 --- /dev/null +++ b/booking/templates/booking/terms.html @@ -0,0 +1,5 @@ +{% extends 'front_template.html' %} + +{% block body %} +

Terms and Conditions

+{% endblock %} diff --git a/booking/templates/front_template.html b/booking/templates/front_template.html index 8689e6c..81f5c6f 100644 --- a/booking/templates/front_template.html +++ b/booking/templates/front_template.html @@ -6,6 +6,7 @@

Rubber Duck Booking Tool

Home + Terms and Conditions Vocabulary {% block body %}{% endblock %} diff --git a/booking/tests.py b/booking/tests.py index f4f9ccf..fba6853 100644 --- a/booking/tests.py +++ b/booking/tests.py @@ -7,3 +7,7 @@ class FrontTest(TestCase): def test_vocabulary_page(self): response = self.client.get('/vocabulary.html') self.assertEqual(response.status_code, 200) + + def test_terms_page(self): + response = self.client.get('/terms.html') + self.assertEqual(response.status_code, 200) diff --git a/booking/urls.py b/booking/urls.py index d852b66..6d7617c 100644 --- a/booking/urls.py +++ b/booking/urls.py @@ -8,4 +8,9 @@ urlpatterns = patterns( TemplateView.as_view(template_name = 'booking/vocabulary.html'), name = 'vocabulary' ), + url( + r'^terms.html$', + TemplateView.as_view(template_name = 'booking/terms.html'), + name = 'terms' + ), )