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' + ), )