From cc07b3fdc4b8860a1ee1b25f09039ba3f13ee509 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 11 Feb 2025 00:25:57 +0200 Subject: Add initial browser UI app --- browser/templates/aside.html.j2 | 16 ++++++++++++++++ browser/templates/base.html.j2 | 20 ++++++++++++++++++++ browser/templates/error.html.j2 | 6 ++++++ browser/templates/form_find.html.j2 | 6 ++++++ browser/templates/form_range.html.j2 | 8 ++++++++ browser/templates/index.html.j2 | 28 ++++++++++++++++++++++++++++ 6 files changed, 84 insertions(+) create mode 100644 browser/templates/aside.html.j2 create mode 100644 browser/templates/base.html.j2 create mode 100644 browser/templates/error.html.j2 create mode 100644 browser/templates/form_find.html.j2 create mode 100644 browser/templates/form_range.html.j2 create mode 100644 browser/templates/index.html.j2 (limited to 'browser/templates') diff --git a/browser/templates/aside.html.j2 b/browser/templates/aside.html.j2 new file mode 100644 index 0000000..eb8c9cf --- /dev/null +++ b/browser/templates/aside.html.j2 @@ -0,0 +1,16 @@ +{% block aside %} + +{% endblock %} diff --git a/browser/templates/base.html.j2 b/browser/templates/base.html.j2 new file mode 100644 index 0000000..a8a6cf7 --- /dev/null +++ b/browser/templates/base.html.j2 @@ -0,0 +1,20 @@ + + + + + + + + {% block head_meta %} + Database browser + + {% endblock %} + + + + + +

Database browser

+ {% block content %}{% endblock %} + + diff --git a/browser/templates/error.html.j2 b/browser/templates/error.html.j2 new file mode 100644 index 0000000..2d0dc19 --- /dev/null +++ b/browser/templates/error.html.j2 @@ -0,0 +1,6 @@ +{% extends "base.html.j2" %} + +{% block content %} +

Error

+{{ error }} +{% endblock %} diff --git a/browser/templates/form_find.html.j2 b/browser/templates/form_find.html.j2 new file mode 100644 index 0000000..54608b6 --- /dev/null +++ b/browser/templates/form_find.html.j2 @@ -0,0 +1,6 @@ +
+ + + + + diff --git a/browser/templates/form_range.html.j2 b/browser/templates/form_range.html.j2 new file mode 100644 index 0000000..76eb4d2 --- /dev/null +++ b/browser/templates/form_range.html.j2 @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/browser/templates/index.html.j2 b/browser/templates/index.html.j2 new file mode 100644 index 0000000..9713944 --- /dev/null +++ b/browser/templates/index.html.j2 @@ -0,0 +1,28 @@ +{% extends "base.html.j2" %} + +{% block content %} +
+ {% include "aside.html.j2" %} + +
+ + + + {% for field_name in field_names %} + + {% endfor %} + + + + {% for row in rows %} + + {% for field in row %} + + {% endfor %} + + {% endfor %} + +
{{ field_name }}
{{ field }}
+
+
+{% endblock %} -- cgit v1.3