summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html12
-rw-r--r--templates/entry.html17
-rw-r--r--templates/results.html17
-rw-r--r--templates/viewlog.html22
4 files changed, 68 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..98eef27
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html>
+ <head>
+ <title>{{ the_title }}</title>
+ <link rel="stylesheet" href="static/hf.css" />
+ </head>
+ <body>
+ {% block body %}
+
+ {% endblock %}
+ </body>
+</html>
diff --git a/templates/entry.html b/templates/entry.html
new file mode 100644
index 0000000..c54a766
--- /dev/null
+++ b/templates/entry.html
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% block body %}
+
+<h2>{{ the_title }}</h2>
+
+<form method='POST' action='/search4'>
+<table>
+<p>Use this form to submit a search request:</p>
+<tr><td>Phrase:</td><td><input name='phrase' type='TEXT' width='60'></td></tr>
+<tr><td>Letters:</td><td><input name='letters' type='TEXT' value='aeiou'></td></tr>
+</table>
+<p>When you're ready, click this button:</p>
+<p><input value='Do it!' type='SUBMIT'></p>
+</form>
+
+{% endblock %}
diff --git a/templates/results.html b/templates/results.html
new file mode 100644
index 0000000..462bfb0
--- /dev/null
+++ b/templates/results.html
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% block body %}
+
+<h2>{{ the_title }}</h2>
+
+<p>You submitted the following data:</p>
+<table>
+<tr><td>Phrase:</td><td>{{ the_phrase }}</td></tr>
+<tr><td>Letters:</td><td>{{ the_letters }}</td></tr>
+</table>
+
+<p>When "{{the_phrase }}" is searched for "{{ the_letters }}", the following
+results are returned:</p>
+<h3>{{ the_results }}</h3>
+
+{% endblock %}
diff --git a/templates/viewlog.html b/templates/viewlog.html
new file mode 100644
index 0000000..8a47ccc
--- /dev/null
+++ b/templates/viewlog.html
@@ -0,0 +1,22 @@
+{% extends 'base.html' %}
+
+{% block body %}
+
+<h2>{{ the_title }}</h2>
+
+<table>
+ <tr>
+ {% for row_title in the_row_titles %}
+ <th>{{row_title}}</th>
+ {% endfor %}
+ </tr>
+ {% for log_row in the_data %}
+ <tr>
+ {% for item in log_row %}
+ <td>{{item}}</td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+</table>
+
+{% endblock %}