diff --git a/seminar/templates/seminar/clanky/base.html b/seminar/templates/seminar/clanky/base.html
new file mode 100644
index 00000000..8698808e
--- /dev/null
+++ b/seminar/templates/seminar/clanky/base.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block submenu %}
+ {% include "seminar/clanky/submenu.html" %}
+{% endblock %}
+
diff --git a/seminar/templates/seminar/cojemam/base.html b/seminar/templates/seminar/cojemam/base.html
new file mode 100644
index 00000000..9a9c01c0
--- /dev/null
+++ b/seminar/templates/seminar/cojemam/base.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block submenu %}
+ {% include "seminar/cojemam/submenu.html" %}
+{% endblock %}
+
diff --git a/seminar/templates/seminar/cojemam/organizatori.html b/seminar/templates/seminar/cojemam/organizatori.html
index d71566bc..5c644f47 100644
--- a/seminar/templates/seminar/cojemam/organizatori.html
+++ b/seminar/templates/seminar/cojemam/organizatori.html
@@ -1,8 +1,4 @@
-{% extends "base.html" %}
-
-{% block submenu %}
- {% include "seminar/cojemam/submenu.html" %}
-{% endblock %}
+{% extends "seminar/cojemam/base.html" %}
{% block content %}
diff --git a/seminar/templates/seminar/soustredeni/base.html b/seminar/templates/seminar/soustredeni/base.html
new file mode 100644
index 00000000..4fb36650
--- /dev/null
+++ b/seminar/templates/seminar/soustredeni/base.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block submenu %}
+ {% include "seminar/soustredeni/submenu.html" %}
+{% endblock %}
+
diff --git a/seminar/templates/seminar/AktualniZadani.html b/seminar/templates/seminar/zadani/AktualniZadani.html
similarity index 89%
rename from seminar/templates/seminar/AktualniZadani.html
rename to seminar/templates/seminar/zadani/AktualniZadani.html
index ba07d6d8..fb508005 100644
--- a/seminar/templates/seminar/AktualniZadani.html
+++ b/seminar/templates/seminar/zadani/AktualniZadani.html
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "seminar/zadani/base.html" %}
{% block content %}
diff --git a/seminar/templates/seminar/zadani/base.html b/seminar/templates/seminar/zadani/base.html
new file mode 100644
index 00000000..ba4148aa
--- /dev/null
+++ b/seminar/templates/seminar/zadani/base.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block submenu %}
+ {% include 'seminar/zadani/submenu.html' %}
+{% endblock submenu %}
+
diff --git a/seminar/views.py b/seminar/views.py
index 6637023a..96a89d5e 100644
--- a/seminar/views.py
+++ b/seminar/views.py
@@ -7,7 +7,7 @@ from .models import Problem, Cislo, Reseni, VysledkyKCislu, Nastaveni, Rocnik, S
def AktualniZadaniView(request):
nastaveni = get_object_or_404(Nastaveni)
- return render(request, 'seminar/AktualniZadani.html',
+ return render(request, 'seminar/zadani/AktualniZadani.html',
{'nastaveni' : nastaveni,
},
)
@@ -23,22 +23,22 @@ class CislaView(generic.ListView):
class RocnikView(generic.DetailView):
model = Rocnik
- template_name = 'seminar/rocnik.html'
+ template_name = 'seminar/archiv/rocnik.html'
class SoustredeniView(generic.DetailView):
model = Soustredeni
- template_name = 'seminar/soustredeni.html'
+ template_name = 'seminar/archiv/soustredeni.html'
class ProblemView(generic.DetailView):
model = Problem
- template_name = 'seminar/problem.html'
+ template_name = 'seminar/archiv/problem.html'
class RadekVysledkovky(object):
pass
class CisloView(generic.DetailView):
model = Cislo
- template_name = 'seminar/cislo.html'
+ template_name = 'seminar/archiv/cislo.html'
def get_context_data(self, **kwargs):
context = super(CisloView, self).get_context_data(**kwargs)