diff options
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> |