{varType FuzeWorks\Forms\Form $form} {varType FuzeWorks\Forms\Field $field}

{$config['name']}

{foreach $form->getFields() as $field} {switch get_class($field)} {case "FuzeWorks\Forms\Fields\HiddenField", "FuzeWorks\Forms\Fields\SubmitField"} {$field|noescape} {case "FuzeWorks\Forms\Fields\CheckboxField"}
{$field->addClass("form-check-input")|noescape} {if $field->isValidated() && !$field->isValid()} {$field->getErrors()|implode} {/if}
{default}
{if $field->isValidated() && !$field->isValid()} {$field->class(["form-control", "is-invalid"])|noescape} {$field->getErrors()|implode} {elseif $field->isValidated() && $field->isValid()} {$field->class(["form-control", "is-valid"])|noescape} {else} {$field->addClass("form-control")|noescape} {/if}
{/switch} {/foreach}