This commit is contained in:
parent
d21e5e0bf6
commit
9838f7f024
@ -1,4 +1,9 @@
|
||||
<div class="card">
|
||||
<form
|
||||
hx-encoding='multipart/form-data'
|
||||
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'
|
||||
hx-on::after-request="this.reset()"
|
||||
>
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<span class="card-title">Ты отвечаешь: <a href="#post-{{ target_post_id }}">>>{{ target_post_id }}</a></span>
|
||||
@ -6,11 +11,6 @@
|
||||
<div class="row">
|
||||
<a class="btn-floating halfway-fab waves-effect waves-light red" href="#post-{{ target_post_id }}"><i class="material-icons">>>{{ target_post_id }}</i></a>
|
||||
</div>
|
||||
<form
|
||||
hx-encoding='multipart/form-data'
|
||||
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'
|
||||
hx-on::after-request="this.reset()"
|
||||
>
|
||||
<div class="row">
|
||||
<div class="input-field col s6">
|
||||
<input id="send_this_text" name="send_this_text" type="text" >
|
||||
@ -33,7 +33,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<a href="#answer-post">
|
||||
@ -43,13 +42,13 @@
|
||||
hx-post="/post_to_another_post/{{ target_post_id }}"
|
||||
hx-target="#neu-posts"
|
||||
hx-include="[name='send_this_text'], [name='file']"
|
||||
hx-on::after-request="this.reset()"
|
||||
>
|
||||
Отправить!!
|
||||
<i class="material-icons right">send</i>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
<!-- <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'>
|
||||
|
Loading…
Reference in New Issue
Block a user