Přepsání stvrzenek do templates #7
Merged
zelvuska
merged 3 commits from strvzenky_templates
into master
2 years ago
6 changed files with 71 additions and 44 deletions
@ -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í'), |
||||
|
), |
||||
|
] |
@ -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 |
|
@ -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 %} |
|
Loading…
Reference in new issue