From bdf6b469ad4ced0379e2382826126bd8fdd4fdf9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 28 Jan 2018 18:54:45 +0200 Subject: [PATCH] Move ohlhafv to its own app --- .gitignore | 3 +- kaehmy/static/{ => kaehmy}/css/base.css | 0 kaehmy/static/{ => kaehmy}/css/footer.css | 2 +- kaehmy/static/{ => kaehmy}/css/header.css | 0 kaehmy/static/{ => kaehmy}/css/nav.css | 0 kaehmy/static/{ => kaehmy}/css/readme.md | 0 kaehmy/templates/base.html | 11 ++-- kaehmy/templates/header.html | 1 - kaehmy/templates/navigation.html | 1 - ohlhafv/__init__.py | 0 ohlhafv/admin.py | 4 ++ ohlhafv/apps.py | 5 ++ ohlhafv/forms.py | 18 +++++++ ohlhafv/migrations/0001_initial.py | 32 ++++++++++++ ohlhafv/migrations/__init__.py | 0 ohlhafv/models.py | 44 ++++++++++++++++ .../static/ohlhafv/css}/base.css | 5 ++ .../static/ohlhafv/css/footer.css | 2 +- .../static/ohlhafv/css/header.css | 8 --- .../static/ohlhafv/css/nav.css | 2 +- .../static/ohlhafv}/img/heevi_banner.svg | 0 ohlhafv/tables.py | 10 ++++ ohlhafv/templates/base.html | 28 +++++++++++ ohlhafv/templates/footer.html | 25 ++++++++++ .../ohlhafv => ohlhafv/templates}/header.html | 4 +- .../ohlhafv => ohlhafv/templates}/list.html | 4 +- .../templates}/navigation.html | 3 +- .../ohlhafv => ohlhafv/templates}/new.html | 4 +- ohlhafv/tests.py | 3 ++ ohlhafv/urls.py | 18 +++++++ ohlhafv/views.py | 50 +++++++++++++++++++ sikweb/base.py | 1 + sikweb/urls.py | 1 + webapp/admin.py | 2 - webapp/forms.py | 14 ------ .../0039_delete_ohlhafvchallenge.py | 18 +++++++ webapp/models.py | 28 ----------- webapp/static/css/kaehmy_header.css | 37 -------------- webapp/static/css/webapp_kaehmy.css | 35 ------------- webapp/tables.py | 7 --- webapp/templates/form_base.html | 50 ------------------- webapp/templates/ohlhafv/base.html | 20 -------- webapp/urls.py | 8 --- webapp/views.py | 36 +------------ 44 files changed, 282 insertions(+), 262 deletions(-) rename kaehmy/static/{ => kaehmy}/css/base.css (100%) rename kaehmy/static/{ => kaehmy}/css/footer.css (99%) rename kaehmy/static/{ => kaehmy}/css/header.css (100%) rename kaehmy/static/{ => kaehmy}/css/nav.css (100%) rename kaehmy/static/{ => kaehmy}/css/readme.md (100%) create mode 100644 ohlhafv/__init__.py create mode 100644 ohlhafv/admin.py create mode 100644 ohlhafv/apps.py create mode 100644 ohlhafv/forms.py create mode 100644 ohlhafv/migrations/0001_initial.py create mode 100644 ohlhafv/migrations/__init__.py create mode 100644 ohlhafv/models.py rename {webapp/static/css/ohlhafv => ohlhafv/static/ohlhafv/css}/base.css (93%) rename webapp/static/css/kaehmy_footer.css => ohlhafv/static/ohlhafv/css/footer.css (99%) rename webapp/static/css/ohlhafv_header.css => ohlhafv/static/ohlhafv/css/header.css (90%) rename webapp/static/css/kaehmy_nav.css => ohlhafv/static/ohlhafv/css/nav.css (86%) rename {webapp/static => ohlhafv/static/ohlhafv}/img/heevi_banner.svg (100%) create mode 100644 ohlhafv/tables.py create mode 100644 ohlhafv/templates/base.html create mode 100644 ohlhafv/templates/footer.html rename {webapp/templates/ohlhafv => ohlhafv/templates}/header.html (53%) rename {webapp/templates/ohlhafv => ohlhafv/templates}/list.html (77%) rename {webapp/templates/ohlhafv => ohlhafv/templates}/navigation.html (81%) rename {webapp/templates/ohlhafv => ohlhafv/templates}/new.html (87%) create mode 100644 ohlhafv/tests.py create mode 100644 ohlhafv/urls.py create mode 100644 ohlhafv/views.py create mode 100644 webapp/migrations/0039_delete_ohlhafvchallenge.py delete mode 100644 webapp/static/css/kaehmy_header.css delete mode 100644 webapp/static/css/webapp_kaehmy.css delete mode 100644 webapp/templates/form_base.html delete mode 100644 webapp/templates/ohlhafv/base.html diff --git a/.gitignore b/.gitignore index d765d1f..3027d51 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ requirements_henu.txt /collected_static/ mydatabase settings.json -.vscode/ \ No newline at end of file +.vscode/ +.DS_Store diff --git a/kaehmy/static/css/base.css b/kaehmy/static/kaehmy/css/base.css similarity index 100% rename from kaehmy/static/css/base.css rename to kaehmy/static/kaehmy/css/base.css diff --git a/kaehmy/static/css/footer.css b/kaehmy/static/kaehmy/css/footer.css similarity index 99% rename from kaehmy/static/css/footer.css rename to kaehmy/static/kaehmy/css/footer.css index bf63819..8c8bba8 100644 --- a/kaehmy/static/css/footer.css +++ b/kaehmy/static/kaehmy/css/footer.css @@ -7,7 +7,7 @@ footer { bottom: 0; width: 100%; height: 60px; /* Set the fixed height of the footer here */ - /* line-height: 60px; /* Vertically center the text there */ */ + /* line-height: 60px; /* Vertically center the text there */ margin-top: 2rem; margin-bottom: 1rem; } diff --git a/kaehmy/static/css/header.css b/kaehmy/static/kaehmy/css/header.css similarity index 100% rename from kaehmy/static/css/header.css rename to kaehmy/static/kaehmy/css/header.css diff --git a/kaehmy/static/css/nav.css b/kaehmy/static/kaehmy/css/nav.css similarity index 100% rename from kaehmy/static/css/nav.css rename to kaehmy/static/kaehmy/css/nav.css diff --git a/kaehmy/static/css/readme.md b/kaehmy/static/kaehmy/css/readme.md similarity index 100% rename from kaehmy/static/css/readme.md rename to kaehmy/static/kaehmy/css/readme.md diff --git a/kaehmy/templates/base.html b/kaehmy/templates/base.html index 4e66d42..06e360b 100644 --- a/kaehmy/templates/base.html +++ b/kaehmy/templates/base.html @@ -4,19 +4,22 @@ {% load i18n %} {% block styles %} - + + + + {% endblock styles %} {% block body %} {% block header %}
- {% include ":header.html" %} + {% include "kaehmy:header.html" %}
{% endblock header %} {% block navigation %} - {% include ":navigation.html" %} + {% include "kaehmy:navigation.html" %} {% endblock %}
@@ -25,7 +28,7 @@
diff --git a/kaehmy/templates/header.html b/kaehmy/templates/header.html index 59cb76a..008555a 100644 --- a/kaehmy/templates/header.html +++ b/kaehmy/templates/header.html @@ -1,5 +1,4 @@ {% load i18n %} -