diff --git a/assets/templ/components/image.templ b/assets/templ/components/image.templ index d9feecd7..dbe9d4ff 100644 --- a/assets/templ/components/image.templ +++ b/assets/templ/components/image.templ @@ -62,6 +62,8 @@ templ ImageCard(i Image, hasLearnMore bool) { hx-get={ `/postcard/send?awid=` + i.Id } hx-target="#d" class="card-footer-item" + hx-swap="innerHTML" + hx-select="section.postcard-editor" > Send Postcard diff --git a/assets/templ/layouts/layout.templ b/assets/templ/layouts/layout.templ index ffd3f4d3..49fefbc5 100644 --- a/assets/templ/layouts/layout.templ +++ b/assets/templ/layouts/layout.templ @@ -52,6 +52,7 @@ templ layout_base() { hx-target="#d" hx-select="section.container" class="button is-primary is-feedback" + hx-swap="innerHTML" >Feedback