Add disclaimer page
This commit is contained in:
		
							
								
								
									
										6
									
								
								booking/templates/booking/disclaimer.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								booking/templates/booking/disclaimer.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| {% extends 'front_template.html' %} | ||||
|  | ||||
| {% block body %} | ||||
| <h2>Disclaimer</h2> | ||||
| <p>Basic idea is from <a href="http://en.wikipedia.org/wiki/The_Pragmatic_Programmer">The Pragmatic Programmer. I suggest to read this book, even if you are not a programmer.</p> | ||||
| {% endblock %} | ||||
| @@ -8,6 +8,7 @@ | ||||
|         <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:disclaimer' %}">Disclaimer</a> | ||||
| {% block body %}{% endblock %} | ||||
|     </body> | ||||
| </html> | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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' | ||||
|     ), | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user