diff --git a/booking/templates/booking/disclaimer.html b/booking/templates/booking/disclaimer.html new file mode 100644 index 0000000..41bc94b --- /dev/null +++ b/booking/templates/booking/disclaimer.html @@ -0,0 +1,6 @@ +{% extends 'front_template.html' %} + +{% block body %} +

Disclaimer

+

Basic idea is from The Pragmatic Programmer. I suggest to read this book, even if you are not a programmer.

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