diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-20 12:04:39 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-20 12:04:39 +0100 |
commit | d66c0d42b678408921f5c3cb43c18df5b1f87338 (patch) | |
tree | 4e237edbe090f019eb76ab99bc446109469f2b2f /templates/_base.html | |
parent | edae6bad0f61ae37593aef7efd5386525562c833 (diff) | |
download | booksearch-d66c0d42b678408921f5c3cb43c18df5b1f87338.tar.gz booksearch-d66c0d42b678408921f5c3cb43c18df5b1f87338.zip |
web interface
Diffstat (limited to 'templates/_base.html')
-rw-r--r-- | templates/_base.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/_base.html b/templates/_base.html new file mode 100644 index 0000000..b5826b2 --- /dev/null +++ b/templates/_base.html @@ -0,0 +1,35 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<html lang="en"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + {% block head %} + <link rel="stylesheet" href="{{ url_for("static", filename="style.css") }}" /> + <title>{% block title %}{% endblock %} - booksearch</title> + <script> + function start() { + var inputField = document.getElementById("searchInput"); + window.location = "/search/" + inputField.value; + return false; + } + </script> + {% endblock %} +</head> +<body> + <div id="header"> + booksearch + </div> + <div id="search"> + <span class="preSearchField">Search:</span> + <input id="searchInput" type="text" value="{% block searchValue %}{% endblock %}" placeholder="terms..." /> + <button onclick="start()">Senden</button> + </div> + <hr /> + <div id="content"> + {% block content %}{% endblock %} + </div> + <div id="footer"> + {% block footer %} + 2010 - booksearch + {% endblock %} + </div> +</body> |