Add Terms and Conditions page template

This commit is contained in:
Gergely Polonkai 2014-12-23 11:09:23 +01:00 committed by Gergely Polonkai
parent cb8a780548
commit b2e434300a
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{% extends 'front_template.html' %}
{% block body %}
<h2>Terms and Conditions</h2>
{% endblock %}

View File

@ -6,6 +6,7 @@
<body> <body>
<h1>Rubber Duck Booking Tool</h1> <h1>Rubber Duck Booking Tool</h1>
<a href="{% url 'index' %}">Home</a> <a href="{% url 'index' %}">Home</a>
<a href="{% url 'booking:terms' %}">Terms and Conditions</a>
<a href="{% url 'booking:vocabulary' %}">Vocabulary</a> <a href="{% url 'booking:vocabulary' %}">Vocabulary</a>
{% block body %}{% endblock %} {% block body %}{% endblock %}
</body> </body>

View File

@ -7,3 +7,7 @@ class FrontTest(TestCase):
def test_vocabulary_page(self): def test_vocabulary_page(self):
response = self.client.get('/vocabulary.html') response = self.client.get('/vocabulary.html')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
def test_terms_page(self):
response = self.client.get('/terms.html')
self.assertEqual(response.status_code, 200)

View File

@ -8,4 +8,9 @@ urlpatterns = patterns(
TemplateView.as_view(template_name = 'booking/vocabulary.html'), TemplateView.as_view(template_name = 'booking/vocabulary.html'),
name = 'vocabulary' name = 'vocabulary'
), ),
url(
r'^terms.html$',
TemplateView.as_view(template_name = 'booking/terms.html'),
name = 'terms'
),
) )