select.html 654 B

12345678910111213
  1. <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" id="form_group_{$form.name}">
  2. <div class="col-xs-12 label-title" for="{$form.name}">{$form.title|htmlspecialchars}</div>
  3. <div class="col-sm-12">
  4. <select class="select2 form-control" id="{$form.name}" name="{$form.name}" {$form.attr|default=''}>
  5. {volist name="form.extra" id="option"}
  6. <option value="{$key}" {if ((string)$form.value == (string)$key)}selected{/if}>{$option|raw}</option>
  7. {/volist}
  8. </select>
  9. {notempty name="form.tips"}
  10. <div class="help-block">{$form.tips}</div>
  11. {/notempty}
  12. </div>
  13. </div>