This commit is contained in:
piair 2023-08-21 21:16:59 +02:00
parent 2b0e99031e
commit 41f4059996
1 changed files with 8 additions and 5 deletions

View File

@ -76,17 +76,20 @@
</form> </form>
<script>
function addline(ligne){
document.getElementById("table").insertRow(i+1).insertCell(0).innerHTML = '<input type="file" id="file' + ligne + 1 + '" name="file' + ligne + 1 + '" onchange="addline(' + ligne + 1 + ')">'
}
</script>
<form method="POST" action="/upload_file/" enctype=multipart/form-data> <form method="POST" action="/upload_file/" enctype=multipart/form-data>
<table> <table id="table">
<tr ><td><input type="file" id="file1" name="file1" onchange='table.insertRow(0).insertCell(0).innerHTML = "NEW CELL1"'></td></tr> <tr><td><input type="file" id="file1" name="file1" onchange='addline(0)'></td></tr>
<tr><td><input type="submit" name="settings" id="submit" value="send file" class="button"/></td></tr> <tr><td><input type="submit" name="settings" id="submit" value="send file" class="button"/></td></tr>
</table> </table>
</form> </form>
<script>
//
</script>
{% endif %} {% endif %}
{%endblock %} {%endblock %}