diff --git a/application/admin/command/Crud/stubs/html/switch.stub b/application/admin/command/Crud/stubs/html/switch.stub new file mode 100644 index 0000000..e2aeec0 --- /dev/null +++ b/application/admin/command/Crud/stubs/html/switch.stub @@ -0,0 +1,5 @@ + + <input {%attrStr%} name="{%fieldName%}" type="hidden" value="{%fieldValue%}"> + <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-{%field%}" data-yes="{%fieldYes%}" data-no="{%fieldNo%}" > + <i class="fa fa-toggle-on text-success {%fieldSwitchClass%} fa-2x"></i> + </a> \ No newline at end of file