25 lines
700 B
Plaintext
25 lines
700 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(); toggleContent('form');"
|
|
#endif
|
|
hx-disabled-elt="find input[type='text'], find button, find input[type='submit']"
|
|
>
|
|
#import("formBody")
|
|
</form>
|