Add Terms and Conditions page template
This commit is contained in:
		
							
								
								
									
										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> | ||||
|         <h1>Rubber Duck Booking Tool</h1> | ||||
|         <a href="{% url 'index' %}">Home</a> | ||||
|         <a href="{% url 'booking:terms' %}">Terms and Conditions</a> | ||||
|         <a href="{% url 'booking:vocabulary' %}">Vocabulary</a> | ||||
| {% block body %}{% endblock %} | ||||
|     </body> | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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' | ||||
|     ), | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user