From 62609c8fe3d5656274d8147c2c2764696f9de24c Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Tue, 28 Sep 2021 20:43:39 +0200
Subject: [PATCH] =?UTF-8?q?Popis=20importov=C3=A1n=C3=AD=20p=C5=99id=C3=A1?=
=?UTF-8?q?n=20do=20sekce=20s=20dokumentac=C3=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mo/web/doc.py | 5 +++++
mo/web/org_contest.py | 5 -----
mo/web/templates/doc_index.html | 1 +
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/mo/web/doc.py b/mo/web/doc.py
index c909a6e8..4c8178ee 100644
--- a/mo/web/doc.py
+++ b/mo/web/doc.py
@@ -21,3 +21,8 @@ def doc_gdpr():
@app.route('/doc/about')
def doc_about():
return render_template('doc_about.html')
+
+
+@app.route('/doc/import')
+def doc_import():
+ return render_template('doc_import.html')
diff --git a/mo/web/org_contest.py b/mo/web/org_contest.py
index b2ecd53c..a68bd79a 100644
--- a/mo/web/org_contest.py
+++ b/mo/web/org_contest.py
@@ -413,11 +413,6 @@ def org_contest(ct_id: int, site_id: Optional[int] = None):
)
-@app.route('/doc/import')
-def doc_import():
- return render_template('doc_import.html')
-
-
class ImportForm(FlaskForm):
file = flask_wtf.file.FileField("Soubor", render_kw={'autofocus': True})
typ = wtforms.SelectField(
diff --git a/mo/web/templates/doc_index.html b/mo/web/templates/doc_index.html
index 70463f5e..0e1b6bea 100644
--- a/mo/web/templates/doc_index.html
+++ b/mo/web/templates/doc_index.html
@@ -12,6 +12,7 @@
<ul>
<li><a href='{{ url_for('doc_garant') }}'>Návod pro garanty</a>
+<li><a href='{{ url_for('doc_import') }}'>Importování</a>
<li><a href='{{ url_for('static', filename='doc/import-navod.pdf') }}'>Podrobnější návod k importům</a> (PDF)
</ul>
--
GitLab