onoff.tpl 828 B

12345678910111213141516
  1. {if $enableLabel}
  2. <label for="{$addIDs}_{$name}" class="col-sm-3 control-label">{$MGLANG->T('label')}</label>
  3. {/if}
  4. <div class="col-sm-{$colWidth}" >
  5. <div class="onoffswitch onoffswitch-{$addIDs}_{$name}">
  6. <input type="checkbox" name="{$nameAttr}" class="onoffswitch-checkbox" id="{$addIDs}_{$name}" value="true" {if $value}checked{/if}>
  7. <label class="onoffswitch-label" for="{$addIDs}_{$name}">
  8. <span class="onoffswitch-inner" data-before="{$MGLANG->T('enabled')}" data-after="{$MGLANG->T('disabled')}"></span>
  9. <span class="onoffswitch-switch"></span>
  10. </label>
  11. </div>
  12. {if $enableDescription}
  13. <span class="help-block">{$MGLANG->T('description')}</span>
  14. {/if}
  15. <span class="help-block error-block"{if !$error}style="display:none;"{/if}>{$error}</span>
  16. </div>