diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-04-21 23:48:54 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2016-04-19 15:25:49 +0300 |
commit | a693a0459c176b86e17d536584d0c1c527f92857 (patch) | |
tree | f9cfd749454f1e24c14400741d403bb1f1388ce8 /web/directive/tabular-layout.html | |
parent | be803d679f7a51f93194c86e37168c651471031b (diff) | |
download | aconf-0.6.0.tar.bz2 aconf-0.6.0.tar.xz |
web client: refactor using AngularJS and Bootstrapv0.6.0
Diffstat (limited to 'web/directive/tabular-layout.html')
-rw-r--r-- | web/directive/tabular-layout.html | 32 |
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> |