summaryrefslogtreecommitdiffstats
path: root/web/directive/basic-input.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/directive/basic-input.html')
-rw-r--r--web/directive/basic-input.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/directive/basic-input.html b/web/directive/basic-input.html
new file mode 100644
index 0000000..485f3bb
--- /dev/null
+++ b/web/directive/basic-input.html
@@ -0,0 +1,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>