3
0
Fork 0

feat: overhaul how form vue template is rendered

now a page template can add `<%def name="form_vue_fields()">` and the
form should inspect/discover and use that instead of its default
This commit is contained in:
Lance Edgar 2025-12-23 22:40:33 -06:00
parent 9edf6f298c
commit 49c001c9ad
9 changed files with 300 additions and 109 deletions

View file

@ -0,0 +1,11 @@
## -*- coding: utf-8; -*-
<%inherit file="/form.mako" />
<%def name="form_vue_fields()">
SOMETHING CRAZY
<b-field label="name">
<b-input name="name" v-model="${form.get_field_vmodel('name')}" />
</b-field>
</%def>