--- /dev/null
+{% extends 'base_super.html' %}
+
+{% block body %}
+
+<h1>Wielki Turniej Edukacji Medialnej</h1>
+
+<p>Pierszy etap Turnieju został zakończony.</p>
+
+{% endblock %}
\ No newline at end of file
--- /dev/null
+{% extends 'base_super.html' %}
+
+{% block body %}
+
+<h1>Wielki Turniej Edukacji Medialnej</h1>
+
+<p>Pierwszy etap: 21 listopada, 15:30 - 17:30.</p>
+
+{% endblock %}
\ No newline at end of file
from .models import Submission
from .forms import WTEMForm
+WTEM_CONTEST_STAGE = getattr(settings, 'WTEM_CONTEST_STAGE', 'before')
+
def main(request):
pass
def form(request, key):
+ return globals()['form_' + WTEM_CONTEST_STAGE](request, key)
+
+def form_before(request, key):
+ return render(request, 'wtem/main_before.html')
+
+def form_after(request, key):
+ return render(request, 'wtem/main_after.html')
+
+def form_during(request, key):
try:
submission = Submission.objects.get(key = key)
except Submission.DoesNotExist: