diff options
| author | Willem Renes <wrenes@raudkembingur.nl> | 2021-05-12 00:32:14 +0200 |
|---|---|---|
| committer | Willem Renes <wrenes@raudkembingur.nl> | 2021-05-12 00:32:14 +0200 |
| commit | d0f08ed8699a2eda867bdab7c89628132bf90a3e (patch) | |
| tree | d04324a4b23bd2940e74b735cb51c475a1cecf94 /templates | |
| parent | f26f201416c0467bccef59a6336af56fc0f3e1ac (diff) | |
| download | vsearchweb-d0f08ed8699a2eda867bdab7c89628132bf90a3e.tar.gz vsearchweb-d0f08ed8699a2eda867bdab7c89628132bf90a3e.zip | |
adding the initial files
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 12 | ||||
| -rw-r--r-- | templates/entry.html | 17 | ||||
| -rw-r--r-- | templates/results.html | 17 | ||||
| -rw-r--r-- | templates/viewlog.html | 22 |
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 %} |
