Pavel "LEdoian" Turinsky
2 years ago
34 changed files with 232 additions and 261 deletions
@ -0,0 +1,24 @@ |
|||
# Univerzální popis našich konvencí pro nastavení editorů. |
|||
# Vizte https://editorconfig.org pro detaily |
|||
|
|||
root = true |
|||
|
|||
[*] |
|||
charset = utf-8 |
|||
# Unixové řádky |
|||
end_of_line = lf |
|||
insert_final_newline = true |
|||
|
|||
[*.{py,css}] |
|||
indent_style = tab |
|||
# Nenařizujeme konkrétní šířku tabulátoru |
|||
indent_size = unset |
|||
|
|||
# Automaticky generované migrace dodržují PEP-8, nemá smysl s tím moc bojovat. |
|||
[*/migrations/*.py] |
|||
indent_style = space |
|||
indent_size = 4 |
|||
|
|||
[*.html] |
|||
indent_style = space |
|||
indent_size = 2 |
@ -0,0 +1,18 @@ |
|||
# Generated by Django 3.2.16 on 2022-11-14 20:51 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0107_zmrazenavysledkovka'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='nastaveni', |
|||
name='cena_sous', |
|||
field=models.IntegerField(default=1000, verbose_name='Účastnický poplatek za soustředění'), |
|||
), |
|||
] |
@ -0,0 +1,18 @@ |
|||
# Generated by Django 3.2.16 on 2022-11-14 19:30 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0108_nastaveni_cena_sous'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='hodnoceni', |
|||
name='feedback', |
|||
field=models.TextField(blank=True, default='', help_text='Zpětná vazba řešiteli (plain text)', verbose_name='zpětná vazba'), |
|||
), |
|||
] |
@ -1,25 +0,0 @@ |
|||
\input opmac |
|||
\chyph |
|||
\nopagenumbers |
|||
\parindent=0pt |
|||
|
|||
\def\castka{1000} |
|||
|
|||
\newread\data |
|||
\openin\data=/dev/stdin |
|||
\read\data to\termin |
|||
\read\data to\misto |
|||
|
|||
\loop |
|||
\read\data to\ucastnik |
|||
\unless\ifeof\data |
|||
\vbox{\picw=2cm\inspic logomm.pdf \smallskip\hrule\medskip |
|||
Potvrzujeme, že \ucastnik se zúčastnil(a) soustředění Korespondenčního semináře M\&M konaného % \ucastnik má na konci mezeru |
|||
v~termínu \termin a že zaplatil(a) účastnický poplatek ve výši $\sim$\castka Kč$\sim$. % \termin též |
|||
\bigskip |
|||
\the\day.~\the\month.~\the\year, \misto\hfill Přijal(a): \hbox to 4cm{\hrulefill} |
|||
\bigskip |
|||
} |
|||
\repeat |
|||
|
|||
\bye |
@ -1,33 +0,0 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block content %} |
|||
<h1> |
|||
{% block nadpis1a %} |
|||
Obálkování {{ cislo }} |
|||
{% endblock %} |
|||
</h1> |
|||
|
|||
Obálkovat se budou tyto problémy: |
|||
<ul> |
|||
{% for p in problemy %} |
|||
|
|||
<li> {{ p.kod_v_rocniku }} {{ p }} |
|||
{% endfor %} |
|||
</ul> |
|||
|
|||
{% for r in reseni %} |
|||
{% ifchanged r.resitel %} |
|||
{% if not forloop.first %} |
|||
</ul> |
|||
{% endif %} |
|||
<h4>{{ r.resitel }}</h4> |
|||
<ul> |
|||
{% endifchanged %} |
|||
|
|||
<li> |
|||
{{ r.problem.kod_v_rocniku }} {{ r.problem.nazev }} ({{ r.body }}) |
|||
|
|||
{% endfor %} |
|||
</ul> |
|||
|
|||
{% endblock content %} |
@ -1,30 +0,0 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block content %} |
|||
<h1> |
|||
{% block nadpis1a %} |
|||
Obálkování {{ cislo }} |
|||
{% endblock %} |
|||
</h1> |
|||
<ul> |
|||
{% for reseni in object_list %} |
|||
{% ifchanged reseni.resitele %} |
|||
{% if not forloop.first %} |
|||
</ul> |
|||
{% endif %} |
|||
<h4>{% for resitel in reseni.resitele.all %}{{resitel.osoba}},{% endfor %}</h4> |
|||
<ul> |
|||
{% endifchanged %} |
|||
|
|||
<li>Celkem {{reseni.hodnoceni__body__sum}} bodů z {{reseni.hodnoceni__count}} hodnocení |
|||
<ul> |
|||
{% for h in reseni.hodnoceni_set.all %} |
|||
<li> {{ h.problem }}: {{ h.body }}b </li> |
|||
{% endfor %} |
|||
</ul> |
|||
</li> |
|||
{% endfor %} |
|||
</ul> |
|||
|
|||
|
|||
{% endblock content %} |
@ -0,0 +1,37 @@ |
|||
{% autoescape off %} |
|||
{% load static %} |
|||
{% load tex %} |
|||
\documentclass[11pt,a4paper]{article} |
|||
\usepackage[left=0.75in, right=0.75in,top=0.5in,bottom=0.5in]{geometry} |
|||
\usepackage[T1]{fontenc} |
|||
\usepackage[utf8]{inputenc} |
|||
\usepackage[czech]{babel} |
|||
\usepackage{graphicx} |
|||
\begin{document} |
|||
\pagenumbering{gobble} |
|||
\parindent=0pt |
|||
|
|||
\def\stvrzenka#1#2{ |
|||
\vbox{% |
|||
\includegraphics[width=2cm]{logomm.pdf} |
|||
\smallskip\hrule\medskip |
|||
{% with soustredeni as s %} |
|||
Potvrzujeme, že #1 #2 se zúčastnil(a) soustředění Korespondenčního semináře M\&M konaného |
|||
v~termínu {{s.datum_zacatku|date:"j.~n.~Y"|sloz}} -- |
|||
{{s.datum_konce|date:"j.~n.~Y"|sloz}} a~že zaplatil(a) účastnický poplatek ve |
|||
výši $\sim${{castka|sloz}}Kč$\sim$. |
|||
|
|||
\bigskip |
|||
{{s.datum_zacatku|date:"j.~n.~Y"|sloz}}, {{s.misto|sloz}} \hfill Přijal(a): \hbox to 4cm{\hrulefill} |
|||
\bigskip |
|||
} |
|||
{% endwith %} |
|||
} |
|||
|
|||
{% for u in ucastnici %} |
|||
{% with o=u.osoba %} |
|||
\stvrzenka{{o.jmeno|sloz}}{{o.prijmeni|sloz}} |
|||
{% endwith %} |
|||
{% endfor %} |
|||
\end{document} |
|||
{% endautoescape %} |
@ -1,5 +0,0 @@ |
|||
{% load tex %} |
|||
\newcommand{\datum}{{datum|date:"j. n. Y"|sloz}} |
|||
{% for u in ucastnici %} |
|||
\stvrzenka{{u.cislo_stvrzenky|sloz}}{{u.jmeno|sloz}}{{u.prijmeni|sloz}}{{u.ulice|sloz}}{{u.psc|sloz}}{{u.mesto|sloz}} |
|||
{% endfor %} |
@ -1,29 +1,29 @@ |
|||
<table class='vysledkovka'> |
|||
<tr class='border-b'> |
|||
<th class='border-r'># |
|||
<th class='border-r'>Jméno |
|||
<th class='border-r'>R. |
|||
<th class='border-r'>Odjakživa |
|||
<th class='border-r'>#</th> |
|||
<th class='border-r'>Jméno</th> |
|||
<th class='border-r'>R.</th> |
|||
<th class='border-r'>Odjakživa</th> |
|||
{% for c in vysledkovka.cisla_rocniku %} |
|||
<th class='border-r'><a href="{{ c.verejne_url }}"> |
|||
{{c.rocnik.rocnik}}.{{ c.poradi }}</a> |
|||
{{c.rocnik.rocnik}}.{{ c.poradi }}</a></th> |
|||
{% endfor %} |
|||
<th class='border-r'>Celkem |
|||
<th class='border-r'>Celkem</th> |
|||
|
|||
{% for rv in vysledkovka.radky_vysledkovky %} |
|||
<tr> |
|||
<td class='border-r'>{% autoescape off %}{{ rv.poradi }}{% endautoescape %} |
|||
<td class='border-r'>{% autoescape off %}{{ rv.poradi }}{% endautoescape %}</td> |
|||
<th class='border-r'> |
|||
{% if rv.titul %} |
|||
{{ rv.titul }}<sup>MM</sup> |
|||
{% endif %} |
|||
{{ rv.resitel.osoba.plne_jmeno }} |
|||
<td class='border-r'>{{ rv.rocnik_resitele }} |
|||
<td class='border-r'>{{ rv.body_celkem_odjakziva }} |
|||
{{ rv.resitel.osoba.plne_jmeno }}</th> |
|||
<td class='border-r'>{{ rv.rocnik_resitele }}</td> |
|||
<td class='border-r'>{{ rv.body_celkem_odjakziva }}</td> |
|||
{% for b in rv.body_cisla_seznam %} |
|||
<td class='border-r'>{{ b }} |
|||
<td class='border-r'>{{ b }}</td> |
|||
{% endfor %} |
|||
<td class='border-r'><b>{{ rv.body_rocnik }}</b> |
|||
<td class='border-r'><b>{{ rv.body_rocnik }}</b></td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
Loading…
Reference in new issue