<!--
    Copyright (c) 2012-2015 Kaarle Ritvanen
    See LICENSE file for license details
-->

<div ng-if="!field.editable">
  <label ng-if="field.label">{{ field.label }}</label>
  <div ng-if="!value">No</div>
  <div ng-if="value">Yes</div>
</div>
<div ng-if="field.editable" class="checkbox">
  <label>
    <input type="checkbox" class="aconf-sync" name="{{ name }}" ng-model="value">
    <div class="checkbox-changed" ng-if="!field.label">[changed]</div>
    {{ field.label }}
  </label>
</div>
