aboutsummaryrefslogtreecommitdiff
path: root/templates/contact
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2012-12-04 16:06:00 -0500
committerMike Crute <mcrute@gmail.com>2012-12-11 15:27:46 -0500
commitab626f31a0645d87560d242a20dd60e01b3d3b46 (patch)
treefbeac460e4b4182d0ee4178e5add369bbca76944 /templates/contact
parentfc5ad68e62bd2b82450cdbdd3c83f8c1e94feed2 (diff)
downloaddjango-precompiler-ab626f31a0645d87560d242a20dd60e01b3d3b46.tar.bz2
django-precompiler-ab626f31a0645d87560d242a20dd60e01b3d3b46.tar.xz
django-precompiler-ab626f31a0645d87560d242a20dd60e01b3d3b46.zip
Brief diversion into template inheritance
Diffstat (limited to 'templates/contact')
-rw-r--r--templates/contact/form.html29
-rw-r--r--templates/contact/thanks.html23
2 files changed, 21 insertions, 31 deletions
diff --git a/templates/contact/form.html b/templates/contact/form.html
index 7ada5e0..27b68f0 100644
--- a/templates/contact/form.html
+++ b/templates/contact/form.html
@@ -1,17 +1,12 @@
1<!DOCTYPE html> 1{% extends "base.html" %}
2<html> 2
3 <head> 3{% block title %}Contact Us{% endblock %}
4 <meta charset="utf-8"> 4
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 5{% block content %}
6 <title>Contact Us</title> 6<h1>Contact Us</h1>
7 <meta name="viewport" content="width=device-width"> 7<form action="{% url 'contact:thanks' %}" method="post">
8 </head> 8 {% csrf_token %}
9 <body> 9 {{ form.as_p }}
10 <h1>Contact Us</h1> 10 <button type="submit">Contact Us</button>
11 <form action="{% url 'contact:thanks' %}" method="post"> 11</form>
12 {% csrf_token %} 12{% endblock %}
13 {{ form.as_p }}
14 <button type="submit">Contact Us</button>
15 </form>
16 </body>
17</html>
diff --git a/templates/contact/thanks.html b/templates/contact/thanks.html
index 67e8336..8e131f0 100644
--- a/templates/contact/thanks.html
+++ b/templates/contact/thanks.html
@@ -1,14 +1,9 @@
1<!DOCTYPE html> 1{% extends "base.html" %}
2<html> 2
3 <head> 3{% block title %}Thank You{% endblock %}
4 <meta charset="utf-8"> 4
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 5{% block content %}
6 <title>Thank You</title> 6 <h1>Thanks for contacting us</h1>
7 <meta name="viewport" content="width=device-width"> 7 <p>We have sent the following message to the organizers. Thanks.</p>
8 </head> 8 <p>{{ form.message.value }}</p>
9 <body> 9{% endblock %}
10 <h1>Thanks for contacting us</h1>
11 <p>We have sent the following message to the organizers. Thanks.</p>
12 <p>{{ form.message.value }}</p>
13 </body>
14</html>