work.suroh.tk/node_modules/browser-sync-ui/templates/directives/bs-switch.html

20 lines
760 B
HTML

<section bs-panel="switch" ng-class="{'disabled': !active}">
<div bs-panel-content>
<div bs-panel-icon>
<div class="switch">
<input id="{{switchid}}"
ng-model="item[prop]"
ng-change="toggle(item)"
class="cmn-toggle cmn-toggle-round"
type="checkbox"
checked="">
<label for="{{switchid}}"></label>
</div>
</div>
<div>
<p bs-text="lede">{{item.title}}</p>
<p ng-show="item.tagline && item.tagline.length" ng-bind-html="item.tagline">{{item.tagline}}</p>
</div>
</div>
<div ng-transclude ng-if="item.active"></div>
</section>