feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.
This commit is contained in:
23
Resources/Views/htmx-form.leaf
Normal file
23
Resources/Views/htmx-form.leaf
Normal file
@@ -0,0 +1,23 @@
|
||||
<form id="#(formId)"
|
||||
#if(formClass):
|
||||
class="#(formClass)"
|
||||
#endif
|
||||
#if(htmxPostTargetUrl):
|
||||
hx-post="#(htmxPostTargetUrl)"
|
||||
#else:
|
||||
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>
|
||||
Reference in New Issue
Block a user