Skip to content
Snippets Groups Projects
Commit 62609c8f authored by Martin Mareš's avatar Martin Mareš
Browse files

Popis importování přidán do sekce s dokumentací

parent 2c4e3d3f
Branches
No related tags found
No related merge requests found
...@@ -21,3 +21,8 @@ def doc_gdpr(): ...@@ -21,3 +21,8 @@ def doc_gdpr():
@app.route('/doc/about') @app.route('/doc/about')
def doc_about(): def doc_about():
return render_template('doc_about.html') return render_template('doc_about.html')
@app.route('/doc/import')
def doc_import():
return render_template('doc_import.html')
...@@ -413,11 +413,6 @@ def org_contest(ct_id: int, site_id: Optional[int] = None): ...@@ -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): class ImportForm(FlaskForm):
file = flask_wtf.file.FileField("Soubor", render_kw={'autofocus': True}) file = flask_wtf.file.FileField("Soubor", render_kw={'autofocus': True})
typ = wtforms.SelectField( typ = wtforms.SelectField(
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<ul> <ul>
<li><a href='{{ url_for('doc_garant') }}'>Návod pro garanty</a> <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) <li><a href='{{ url_for('static', filename='doc/import-navod.pdf') }}'>Podrobnější návod k importům</a> (PDF)
</ul> </ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment