8a4aa4efdd
This removes the need for `switch (obj)` in the template which is not allowed in strict mode. Additionally using a named variable speeds up rendering.
12 lines
322 B
HTML
12 lines
322 B
HTML
{[ if (o.label) { ]}
|
|
<label>
|
|
{{{o.label}}}
|
|
</label>
|
|
{[ } ]}
|
|
<div class="input-group">
|
|
<input name="{{{o.name}}}" type="{{{o.type}}}"
|
|
{[ if (o.value) { ]} value="{{{o.value}}}" {[ } ]}
|
|
{[ if (o.required) { ]} class="required" {[ } ]} />
|
|
<span title="{{{o.domain}}}">{{{o.domain}}}</span>
|
|
</div>
|