Skip to content

Commit 63d81c5

Browse files
authored
Merge pull request #51 from baz-ga/fix_form-control
improve templates:form-control
2 parents f7dc2ce + 4f47c65 commit 63d81c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/templates.xql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,13 @@ declare function templates:form-control($node as node(), $model as map(*)) as no
596596
let $control := local-name($node)
597597
return
598598
switch ($control)
599+
case "form" return
600+
element { node-name($node) }{
601+
$node/@* except $node/@action,
602+
attribute action { templates:get-configuration($model, "templates:form-control")($templates:CONFIG_PARAM_RESOLVER)("form-action") },
603+
for $n in $node/node()
604+
return templates:form-control($n, $model)
605+
}
599606
case "input" return
600607
let $type := $node/@type
601608
let $name := $node/@name

0 commit comments

Comments
 (0)