summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-11-21 06:35:14 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-11-21 06:35:14 +1000
commit4cad98d9cd422fad0773440bd42f724856322a19 (patch)
treefef02b179b96e658dd9bb382568f8b6dddd80668 /templates/post_form.html
parent1463d4ed9e7e7e1569f92e71582ef3ad805cf05a (diff)
Add support for multi image upload without Javascript to post form template
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 3066ee76..276797b4 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -126,7 +126,9 @@
{% trans %}File{% endtrans %}
</th>
<td>
- <input type="file" name="file" id="upload_file">
+ {% for counter in 1..config.max_images %}
+ <input type="file" name="file{{ counter }}" id="upload_file{{ counter }}" style="display:block">
+ {% endfor %}
<script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector({{ config.max_images }});</script>