Compare commits
No commits in common. "f3b00796513fe97fe27f7a5ee124395fcaa195ca" and "32141d457f6e18c89f97e9fda202e1b4068ece5c" have entirely different histories.
f3b0079651
...
32141d457f
3 changed files with 3 additions and 44 deletions
|
@ -1,31 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>{% block nadpis1a %}M&Mí 30! odpovědi{% endblock nadpis1a %}</h1>
|
||||
|
||||
<table class="dosla_reseni">
|
||||
<tr>
|
||||
<th>Jméno</th>
|
||||
<th>Přezdívka</th>
|
||||
<th>E-mail</th>
|
||||
<th>Kdy účastník/org</th>
|
||||
<th>Co znamená M&M?</th>
|
||||
<th>Co znamená číslo?</th>
|
||||
<th>Něco dodat?</th>
|
||||
</tr>
|
||||
|
||||
{% for obj in ucastnikvyroci_list %}
|
||||
<tr>
|
||||
<td style="word-break: break-all">{{ obj.jmeno }}</td>
|
||||
<td style="word-break: break-all">{{ obj.prezdivka }}</td>
|
||||
<td style="word-break: break-all">{{ obj.email }}</td>
|
||||
<td style="word-break: break-all">{{ obj.kdy }}</td>
|
||||
<td style="word-break: break-all">{{ obj.cojemam }}</td>
|
||||
<td style="word-break: break-all">{{ obj.cislo }}</td>
|
||||
<td style="word-break: break-all">{{ obj.dodat }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endblock content %}
|
|
@ -1,7 +1,6 @@
|
|||
from django.urls import path
|
||||
|
||||
from seminar.utils import org_required
|
||||
from .views import VyrociView, VyrociListView
|
||||
from .views import VyrociView
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
|
@ -9,9 +8,4 @@ urlpatterns = [
|
|||
VyrociView.as_view(),
|
||||
name='vyrocni_sraz'
|
||||
),
|
||||
path(
|
||||
'sraz_vysledky/',
|
||||
org_required(VyrociListView.as_view()),
|
||||
name='vyrocni_sraz_vysledky'
|
||||
),
|
||||
]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.views.generic import FormView, ListView
|
||||
from django.views.generic import FormView
|
||||
|
||||
from seminar.models import Osoba
|
||||
from seminar.views import formularOKView
|
||||
|
@ -9,6 +9,7 @@ from .models import UcastnikVyroci
|
|||
# Create your views here.
|
||||
|
||||
class VyrociView(FormView):
|
||||
""" Zobrazí organizátorský rozcestník."""
|
||||
template_name = 'vyroci/vyroci.html'
|
||||
form_class = UcastnikVyrociForm
|
||||
|
||||
|
@ -29,8 +30,3 @@ class VyrociView(FormView):
|
|||
initial["jmeno"] = osoba.plne_jmeno()
|
||||
initial["email"] = osoba.email
|
||||
return initial
|
||||
|
||||
|
||||
class VyrociListView(ListView):
|
||||
template_name = 'vyroci/vyroci_list.html'
|
||||
model = UcastnikVyroci
|
||||
|
|
Loading…
Reference in a new issue