Add UIBlocks to twig (new blocks)

This commit is contained in:
Eric
2021-01-13 18:25:37 +01:00
parent 77808ecd41
commit bffb7b5eab
10 changed files with 242 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ class UIFieldNode extends Node
->write("\${$sBlockVar} = Combodo\\iTop\\Application\\UI\\Base\\Component\\Field\\FieldFactory::Make{$sType}(\$sLabel, \$sValue);\n")
->write("\${$sBlockVar}->SetValueId(\$sValueId);\n");
break;
// TODO 3.0 add other FieldFactory methods
// TODO 3.0 add other Factory methods
default:
throw new SyntaxError(sprintf('%s: Bad type "%s" for %s at line %d', $this->getTemplateName(), $sType, $this->tag, $this->lineno), $this->lineno, $this->getSourceContext());