summaryrefslogtreecommitdiffstats
path: root/web/directive/tabular-layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/directive/tabular-layout.html')
-rw-r--r--web/directive/tabular-layout.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/web/directive/tabular-layout.html b/web/directive/tabular-layout.html
new file mode 100644
index 0000000..e503526
--- /dev/null
+++ b/web/directive/tabular-layout.html
@@ -0,0 +1,32 @@
+<!--
+ Copyright (c) 2012-2015 Kaarle Ritvanen
+ See LICENSE file for license details
+-->
+
+<table class="table">
+ <thead>
+ <tr><td></td><td ng-repeat="column in columns">{{ column }}</td></tr>
+ </thead>
+ <tbody ui-sortable="sortable" ng-model="fields">
+ <tr ng-repeat="field in fields"
+ aconf-field="field"
+ class="aconf-node aconf-model-fields">
+ <td>{{ node.meta['ui-name'] }}</td>
+ <td ng-repeat="column in columns">
+ <ng-form name="form" ng-model="columns">
+ <aconf-widget field="{name: column.name, editable: column.editable, meta: column}"
+ form-field="form[column.name]">
+ </aconf-widget>
+ </ng-form>
+ </td>
+ <td ng-if="columns.length < fields.length">
+ <aconf-link path="value" label="Details" status="status"></aconf-link>
+ </td>
+ <td ng-repeat="action in node.meta.actions">
+ <button class="btn btn-default"
+ ng-click="invoke(action.name)">{{ action["ui-name"] }}</button>
+ </td>
+ <td><aconf-del-button></aconf-del-button></td>
+ </tr>
+ </tbody>
+</table>