forked from andyburke/autonomous.contact
feature: forum replies
feature: blurbs
This commit is contained in:
parent
ab63d4ba8d
commit
591fd38088
14 changed files with 651 additions and 290 deletions
|
|
@ -14,8 +14,8 @@
|
|||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
"
|
||||
on_reply="(post) => { append_posts([post]); }"
|
||||
on_parsed="(post) => { render_post(post); document.getElementById('post-' + post.id)?.classList.add('sending'); }"
|
||||
on_reply="async (post) => { await append_posts([post]); }"
|
||||
on_parsed="async (post) => { await render_post(post); document.getElementById('post-' + post.id)?.classList.add('sending'); }"
|
||||
>
|
||||
<input type="hidden" name="type" value="post" />
|
||||
|
||||
|
|
@ -32,6 +32,12 @@
|
|||
reset-on-submit
|
||||
/>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="creator_id"
|
||||
generator="() => { return JSON.parse( document.body.dataset.user ?? '{}' ).id; }"
|
||||
/>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
name="timestamps.created"
|
||||
|
|
@ -66,6 +72,7 @@
|
|||
type="file"
|
||||
multiple
|
||||
data-smartforms-save-to-home="true"
|
||||
name="data.media"
|
||||
reset-on-submit
|
||||
/>
|
||||
<div class="icon attachment"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue