Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!81
Generování protokolů a zpracování scanů
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Generování protokolů a zpracování scanů
mj/protokoly
into
devel
Overview
2
Commits
23
Changes
2
Merged
Martin Mareš
requested to merge
mj/protokoly
into
devel
4 years ago
Overview
2
Commits
23
Changes
2
0
0
Merge request reports
Viewing commit
9c3775ed
Show latest version
2 files
+
88
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
9c3775ed
UI pro generování protokolů
· 9c3775ed
Martin Mareš
authored
4 years ago
mo/web/templates/org_contest_protocols.html
0 → 100644
+
35
−
0
View file @ 9c3775ed
Edit in single-file editor
Open in Web IDE
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% set site_id = site.place_id if site else None %}
{% block title %}
Protokoly pro {{ round.name|lower }} kategorie {{ round.category }}
{% endblock %}
{% block breadcrumbs %}
{{ contest_breadcrumbs(round=round, contest=contest, site=site, action="Protokoly") }}
{% endblock %}
{% block body %}
<p>
Zde je možné vytvořit PDF s formuláři protokolů pro všechny soutěžící. Každý
formulář je opatřen unikátním QR kódem. FIXME: Dovysvětlit.
{% macro field(f) %}
{{ wtf.form_field(f, form_type='horizontal', horizontal_columns=('lg', 3, 7), button_map={'gen_protos': 'primary'}) }}
{% endmacro %}
<form
action=
""
method=
POST
class=
"form form-horizontal"
role=
"form"
>
{{ gen_form.csrf_token }}
{% if gen_task_fields %}
<div
class=
'form-group'
>
<label
class=
'control-label col-lg-3'
for=
'{{ gen_task_fields[0].id }}'
>
Úlohy
</label>
<div
class=
'col-lg-7'
>
{% for f in gen_task_fields %}
{{ wtf.form_field(f) }}
{% endfor %}
</div>
</div>
{% endif %}
{{ field(gen_form.num_universal) }}
{{ field(gen_form.num_blank) }}
{{ field(gen_form.gen_protos) }}
{% endblock %}
Loading