diff --git a/webapp/forms.py b/webapp/forms.py index 292f034..4c59627 100644 --- a/webapp/forms.py +++ b/webapp/forms.py @@ -9,7 +9,7 @@ from webapp.models import OhlhafvChallenge, KaehmyForm, KaehmyMessage class KaehmyCheckboxSelectMultiple(forms.widgets.CheckboxSelectMultiple): - option_template_name = 'kaehmy_checkbox_option.html' + option_template_name = 'checkbox_option.html' def create_option(self, name, value, label, selected, index, subindex=None, attrs=None): dic = super(KaehmyCheckboxSelectMultiple, self).create_option(name, value, label, selected, index, subindex, attrs) diff --git a/webapp/templates/admin_index.html b/webapp/templates/admin_index.html deleted file mode 100644 index 0453ff1..0000000 --- a/webapp/templates/admin_index.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "webapp_base.html" %} -{% load i18n %} - -{% block content %} - -

{% trans "SIK Admin" %}

-

-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam consectetur vitae arcu at bibendum. Nam vel vulputate massa, sit amet volutpat tellus. Fusce varius lectus iaculis nunc laoreet, ac ultricies nulla luctus. Nam fringilla ipsum vel tincidunt viverra. Fusce vestibulum, metus et tincidunt commodo, leo mauris vulputate magna, ut euismod magna nisi eu sem. Integer venenatis, enim in feugiat tempus, erat urna ornare turpis, in varius eros ligula vitae libero. Aliquam erat volutpat. Curabitur ac interdum quam. Duis ornare, eros ac laoreet finibus, libero arcu molestie tellus, id finibus velit lacus nec nibh. Morbi vehicula dolor vel imperdiet pharetra. Maecenas purus lorem, vulputate eget lacus ut, pharetra eleifend sem. Sed aliquam eleifend posuere. Maecenas ac scelerisque odio. Nunc facilisis cursus ornare. Sed neque turpis, sodales id rhoncus eget, vestibulum id urna. Nam ornare urna quis felis porta, vel mollis leo laoreet. -

-

-Proin sed odio a nisi aliquet blandit quis at dolor. Sed tincidunt neque vel ex pulvinar, auctor elementum magna euismod. Pellentesque vel porta justo, quis pulvinar diam. Pellentesque consectetur convallis tellus faucibus lobortis. Mauris ornare erat ac varius condimentum. Sed neque augue, semper quis iaculis a, tincidunt sed diam. Donec volutpat non justo quis mollis. Maecenas nisi enim, mollis sed hendrerit nec, mattis eu diam. Nunc a faucibus neque, scelerisque fermentum ligula. Pellentesque tempus pharetra tempor. Quisque tincidunt orci vel ullamcorper venenatis. Phasellus blandit et purus molestie facilisis. Maecenas auctor accumsan pellentesque. Ut vel mi sem. Etiam porttitor metus vitae nulla pulvinar, nec efficitur metus tincidunt. -

-{% endblock %} diff --git a/webapp/templates/admin_navigation.html b/webapp/templates/admin_navigation.html deleted file mode 100644 index 9e44ee5..0000000 --- a/webapp/templates/admin_navigation.html +++ /dev/null @@ -1,12 +0,0 @@ -{% load i18n %} - - diff --git a/webapp/templates/kaehmy/base.html b/webapp/templates/kaehmy/base.html new file mode 100644 index 0000000..f36b09e --- /dev/null +++ b/webapp/templates/kaehmy/base.html @@ -0,0 +1,25 @@ +{% extends "form_base.html" %} + +{% load static %} +{% load i18n %} + + +{% block header %} +
+ {% include "kaehmy/header.html" %} +
+{% endblock header %} + +{% block navigation %} + {% include "kaehmy/navigation.html" %} +{% endblock %} + +
+ {% block content %} + {% endblock %} +
+ \ No newline at end of file diff --git a/webapp/templates/kaehmy/kaehmy_checkbox_option.html b/webapp/templates/kaehmy/checkbox_option.html similarity index 100% rename from webapp/templates/kaehmy/kaehmy_checkbox_option.html rename to webapp/templates/kaehmy/checkbox_option.html diff --git a/webapp/templates/kaehmy/kaehmy_error.html b/webapp/templates/kaehmy/error.html similarity index 89% rename from webapp/templates/kaehmy/kaehmy_error.html rename to webapp/templates/kaehmy/error.html index a1ecfe3..b8a849a 100644 --- a/webapp/templates/kaehmy/kaehmy_error.html +++ b/webapp/templates/kaehmy/error.html @@ -1,4 +1,4 @@ -{% extends "kaehmy/kaehmy_base.html" %} +{% extends "kaehmy/base.html" %} {% load static %} {% load i18n %} diff --git a/webapp/templates/kaehmy/kaehmy_export.html b/webapp/templates/kaehmy/export.html similarity index 92% rename from webapp/templates/kaehmy/kaehmy_export.html rename to webapp/templates/kaehmy/export.html index 9495444..fdc5a98 100644 --- a/webapp/templates/kaehmy/kaehmy_export.html +++ b/webapp/templates/kaehmy/export.html @@ -1,4 +1,4 @@ -{% extends "kaehmy/kaehmy_base.html" %} +{% extends "kaehmy/base.html" %} {% load static %} {% load i18n %} diff --git a/webapp/templates/kaehmy/kaehmy_footer.html b/webapp/templates/kaehmy/footer.html similarity index 100% rename from webapp/templates/kaehmy/kaehmy_footer.html rename to webapp/templates/kaehmy/footer.html diff --git a/webapp/templates/kaehmy/kaehmy_header.html b/webapp/templates/kaehmy/header.html similarity index 100% rename from webapp/templates/kaehmy/kaehmy_header.html rename to webapp/templates/kaehmy/header.html diff --git a/webapp/templates/kaehmy/kaehmy.html b/webapp/templates/kaehmy/kaehmy.html index 4e6d12e..b4d3143 100644 --- a/webapp/templates/kaehmy/kaehmy.html +++ b/webapp/templates/kaehmy/kaehmy.html @@ -1,10 +1,10 @@ -{% extends "kaehmy/kaehmy_base.html" %} +{% extends "kaehmy/base.html" %} {% load bootstrap3 %} {% load i18n %} {% block navigation %} - {% include "kaehmy/kaehmy_navigation.html" %} + {% include "kaehmy/navigation.html" %} {% endblock %} {% block content %} diff --git a/webapp/templates/kaehmy/kaehmy_base.html b/webapp/templates/kaehmy/kaehmy_base.html deleted file mode 100644 index c9c593f..0000000 --- a/webapp/templates/kaehmy/kaehmy_base.html +++ /dev/null @@ -1,51 +0,0 @@ - - -{% load i18n %} -{% load static %} -{% load staticfiles %} - - - - - - - - - {% trans "Aalto-yliopiston Sähköinsinöörikilta ry" %} - - - - - - - - - - - - - {% block header %} -
- {% include "kaehmy/kaehmy_header.html" %} -
- {% endblock header %} - - {% block navigation %} - {% include "kaehmy/kaehmy_navigation.html" %} - {% endblock %} - -
- {% block content %} - {% endblock %} -
- - - diff --git a/webapp/templates/kaehmy/kaehmy_list.html b/webapp/templates/kaehmy/list.html similarity index 95% rename from webapp/templates/kaehmy/kaehmy_list.html rename to webapp/templates/kaehmy/list.html index 4d8f485..4eedfdd 100644 --- a/webapp/templates/kaehmy/kaehmy_list.html +++ b/webapp/templates/kaehmy/list.html @@ -1,10 +1,10 @@ -{% extends "kaehmy/kaehmy_base.html" %} +{% extends "kaehmy/base.html" %} {% load static %} {% load i18n %} {% block navigation %} - {% include "kaehmy/kaehmy_navigation.html" %} + {% include "kaehmy/navigation.html" %} {% endblock %} {% block content %} @@ -97,7 +97,7 @@
{% for message in application.messages.all %} - {% include "kaehmy/kaehmy_message.html" with messages=message.messages.all %} + {% include "kaehmy/message.html" with messages=message.messages.all %} {% endfor %}
diff --git a/webapp/templates/kaehmy/kaehmy_message.html b/webapp/templates/kaehmy/message.html similarity index 88% rename from webapp/templates/kaehmy/kaehmy_message.html rename to webapp/templates/kaehmy/message.html index 2dada37..1390f7a 100644 --- a/webapp/templates/kaehmy/kaehmy_message.html +++ b/webapp/templates/kaehmy/message.html @@ -13,7 +13,7 @@
{% for message in messages %} - {% include "kaehmy/kaehmy_message.html" with messages=message.messages.all %} + {% include "kaehmy/message.html" with messages=message.messages.all %} {% endfor %}
diff --git a/webapp/templates/kaehmy/kaehmy_navigation.html b/webapp/templates/kaehmy/navigation.html similarity index 99% rename from webapp/templates/kaehmy/kaehmy_navigation.html rename to webapp/templates/kaehmy/navigation.html index 2f4034f..6b10bf7 100644 --- a/webapp/templates/kaehmy/kaehmy_navigation.html +++ b/webapp/templates/kaehmy/navigation.html @@ -1,4 +1,5 @@ {% load i18n %} +