checkbox.html 739 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}" style="margin-bottom: 14px;">{$form.title|htmlspecialchars}</div>
  3. <div class="col-xs-12">
  4. {volist name="form.extra" id="option"}
  5. <label class="pr10">
  6. <input type="checkbox" data-toggle="icheck" name="{$form.name}[]" id="{$form.name}{$key}" value="{$key}" <?php $key = (string)$key; ?> {in name="key" value="$form.value|default=''"}checked{/in} {$form.attr|default=''}> {$option|htmlspecialchars}
  7. </label>
  8. {/volist}
  9. {notempty name="form.tips"}
  10. <div class="help-block">{$form.tips}</div>
  11. {/notempty}
  12. </div>
  13. </div>