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:
parent
9edf6f298c
commit
49c001c9ad
9 changed files with 300 additions and 109 deletions
11
tests/forms/main_template_with_fields.mako
Normal file
11
tests/forms/main_template_with_fields.mako
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue