form

Source code:

<form ?$id id="{$id}" $id? ?$name name="{$name}" $name? ?$class class="{$class}" $class? ?$action action="{$action}" $action? ?$method method="{$method}" $method? ?$encytype enctype="{$enctype}" $enctype?>
    [$fields] field =>
    <div class="{$filed.class}">
        ?$label <label ?$field.id for="{$id}" $field.id?>{$label}</label> !$inline <br/> $inline! $label?
        <input ?$field.type {?( "{$type}" != "text" )?} type="{$type}" {/?} $field.type? ?$field.name name="{$name}" $field.name? ?$field.id id="{$id}" $field.id? ?$field.class class="{$class}" $field.class?>
    </div>
    [/$fields]
</form>