This commit is contained in:
parent
d646b120d5
commit
7a08ae00cd
@ -21,6 +21,16 @@
|
|||||||
<i class="material-icons right">send</i>
|
<i class="material-icons right">send</i>
|
||||||
</button>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<form hx-encoding='multipart/form-data' hx-post='/send_dudes'
|
||||||
|
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'>
|
||||||
|
<input type='file' name='file'>
|
||||||
|
<button>
|
||||||
|
Upload
|
||||||
|
</button>
|
||||||
|
<progress id='progress' value='0' max='100'></progress>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- <h1>Загрузить картинку:</h1>
|
<!-- <h1>Загрузить картинку:</h1>
|
||||||
<input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;">
|
<input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;">
|
||||||
|
@ -15,17 +15,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s7 m6" id="answer-post">
|
<div class="col s7 m6" id="answer-post">
|
||||||
{% include 'answer-post.html' %}
|
{% include 'answer-post.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col s7 m6" id="minio-post">
|
|
||||||
<form hx-encoding='multipart/form-data' hx-post='/send_dudes'
|
|
||||||
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'>
|
|
||||||
<input type='file' name='file'>
|
|
||||||
<button>
|
|
||||||
Upload
|
|
||||||
</button>
|
|
||||||
<progress id='progress' value='0' max='100'></progress>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
Loading…
Reference in New Issue
Block a user