feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.

This commit is contained in:
2025-01-08 14:02:50 -05:00
parent 3557227430
commit 2b6e92a5c6
18 changed files with 493 additions and 93 deletions

View 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>