<!--
    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">
    <a class="btn btn-default"
       href="#/config{{ value }}">{{ choice["ui-value"] }}</a>
  </div>
  <aconf-del-button></aconf-del-button>
</div>
<div ng-if="field.editable">
  <aconf-error></aconf-error>
  <fieldset class="form-inline">
    <aconf-select></aconf-select>
    <a class="btn btn-default" ng-if="value" href="#/config{{ value }}">Show</a>
    <aconf-del-button></aconf-del-button>
  </fieldset>
</div>
