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

<label for="{{ name }}" class="control-label" ng-if="field.label">
  {{ field.label }}
</label>
<div ng-if="!field.editable">
  <div ng-repeat="choice in field.meta.choice" ng-if="choice.value == value">
    {{ choice["ui-value"] }}
  </div>
  <aconf-del-button></aconf-del-button>
</div>
<div ng-if="field.editable">
  <aconf-error></aconf-error>
  <aconf-input><aconf-select></aconf-select></aconf-input>
</div>
