Add Terms and Conditions page template
This commit is contained in:
parent
cb8a780548
commit
b2e434300a
5
booking/templates/booking/terms.html
Normal file
5
booking/templates/booking/terms.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% extends 'front_template.html' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<h2>Terms and Conditions</h2>
|
||||||
|
{% endblock %}
|
@ -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>
|
||||||
|
@ -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)
|
||||||
|
@ -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'
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user