summaryrefslogtreecommitdiffstats
path: root/web/directive/basic-input.html
blob: 485f3bb48636ec6ef1847e1a3d84bd1b98589ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!--
    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">
  {{ value }}
  <aconf-del-button></aconf-del-button>
</div>
<div ng-if="field.editable">
  <aconf-error></aconf-error>
  <aconf-input><ng-transclude></ng-transclude></aconf-input>
</div>