diff --git a/app/templates/main/corpora/corpus_analysis.html.j2 b/app/templates/main/corpora/corpus_analysis.html.j2 index 64a51bc0cb0ec938d1f4972d026f88855fc1dfac..76c947bdd221e8c2c11e99e572d355a24c153718 100644 --- a/app/templates/main/corpora/corpus_analysis.html.j2 +++ b/app/templates/main/corpora/corpus_analysis.html.j2 @@ -52,19 +52,22 @@ </form> <span class="card-title">Download Results</span> <p>Downlaod all results of the current query as csv, excel or json file.</p> - <div class="input-field"> - <i class="material-icons prefix">insert_drive_file</i> - {{ dl_form.file_type() }} - {{ dl_form.file_type.label }} - {% for error in dl_form.file_type.errors %} - <span class="helper-text red-text">{{ error }}</span> - {% endfor %} - </div> - <div class="right-align"> - <button class="btn" type="submit" name="action">Download - <i class="material-icons left">file_download</i> - </button> - </div> + <form method="POST"> + {{ form.hidden_tag() }} + <div class="input-field"> + <i class="material-icons prefix">insert_drive_file</i> + {{ dl_form.file_type() }} + {{ dl_form.file_type.label }} + {% for error in dl_form.file_type.errors %} + <span class="helper-text red-text">{{ error }}</span> + {% endfor %} + </div> + <div class="right-align"> + <button class="btn" type="submit" name="action">Download + <i class="material-icons left">file_download</i> + </button> + </div> + </form> </div> </div> </div>