From 63951315c974ba4c93fcf400c057088ba5eee9a8 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 19 Apr 2023 12:58:31 +0200 Subject: [PATCH] =?UTF-8?q?dodanie=20szablon=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 36 ++++++++++++++++++++++++++++++++++++ templates/create.html | 20 +++++++------------- templates/index.html | 19 +++++++------------ templates/navbar.html | 21 --------------------- 4 files changed, 50 insertions(+), 46 deletions(-) create mode 100644 templates/base.html delete mode 100644 templates/navbar.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..ba770b2 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,36 @@ + + + + {% block title %}{% endblock %} + + + + + +
+ {% block content %}{% endblock %} +
+ + diff --git a/templates/create.html b/templates/create.html index d51f31c..8166115 100644 --- a/templates/create.html +++ b/templates/create.html @@ -1,10 +1,6 @@ - - - - - Formularz - - - - - {% extends 'navbar.html' %} +{% endblock %} + +{% block content %}

Formularz tworzenia pliku konfiguracyjnego


@@ -82,5 +77,4 @@ form button[type="submit"]:hover {

- - + {% endblock %} diff --git a/templates/index.html b/templates/index.html index 2c7ad27..e94d891 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,9 +1,6 @@ - - - - Panel administracyjny - - - - - {% extends 'navbar.html' %} + {% endblock %} + + {% block content %}

Lista maszyn

@@ -96,5 +92,4 @@ window.open(newUrl,"_blank"); } - - + {% endblock %} diff --git a/templates/navbar.html b/templates/navbar.html deleted file mode 100644 index dae93e0..0000000 --- a/templates/navbar.html +++ /dev/null @@ -1,21 +0,0 @@ - \ No newline at end of file