VTepL/examples/select.tpl

10 lines
414 B
Smarty

<v-select ${required ? required} ${multiple ?? multiple} name="${id}" class="${classes}" data-value="${value}" data-bind="${bind}" ${attributeString}>
<v-label empty="${name}"></v-label>
<v-options>
{foreach(options as item)}
// VTepL has a getEqual hack! == check variable 1 and 2
<v-option value="${item.value}">${item.name}</v-option>
{/for}
</v-options>
</v-select>