Files
vapor-po/Resources/Views/htmx-form.leaf

24 lines
588 B
Plaintext

<form id="#(formId)"
#if(formClass):
class="#(formClass)"
#endif
#if(htmxPostTargetUrl):
hx-post="#(htmxPostTargetUrl)"
#elseif(htmxPutTargetUrl):
hx-put="#(htmxPutTargetUrl)"
#endif
hx-target="#(htmxTarget)"
hx-push-url="#(htmxPushUrl)"
#if(htmxSwap):
hx-swap="#(htmxSwap)"
#endif
#if(htmxSwapOob):
hx-swap-oob="#(htmxSwapOob)"
#endif
#if(htmxResetAfterRequest):
hx-on::after-request=" if(event.detail.successful) this.reset()"
#endif
>
#import("formBody")
</form>