<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title" translate>Резервное питание</h3>
  </div>
  <div class="panel-body">
    <form class="form-horizontal" role="form">
      <div class="form-group">
        <label class="col-md-5 control-label" translate>Тип резервного источника питания</label>
        <div class="col-md-3">
          <select class="form-control"
            ng-model="vm.misc().reserve.type"
            ng-options="type.value as type.text for type in vm.reserve_power_types"></select>
        </div>
      </div>
      <div class="form-group">
        <div class="col-md-7 col-md-offset-5">
          <div class="checkbox" ng-class="!vm.isAcc()? 'disabled':''">
            <label class="control-label">
              <input type="checkbox"
                     ng-model="vm.misc().reserve.acc_cut_enabled"
                     ng-true-value="1"
                     ng-false-value="0"
                     ng-disabled="!vm.isAcc()">
              <translate>Защищать резервный источник от глубокого разряда</translate>
            </label>
          </div>
        </div>
      </div>
      <div class="form-group">
        <div class="col-md-7 col-md-offset-5">
          <div class="checkbox" ng-class="!vm.isAcc()? 'disabled':''">
            <label class="control-label">
              <input type="checkbox"
                     ng-true-value="1"
                     ng-false-value="0"
                     ng-model="vm.misc().reserve.acc_quality_control_enabled"
                     ng-disabled="!vm.isAcc()">
              <translate>Проверять качество аккумулятора</translate>
            </label>
          </div>
        </div>
      </div>
    </form>
  </div>
</div>
