| 1 | <div class="panel panel-default"> |
| 2 | <div class="panel-heading"> |
| 3 | <h3 class="panel-title">{{translateTitle(currentNode)}}</h3> |
| 4 | </div> |
| 5 | <table class="table table-striped"> |
| 6 | <thead> |
| 7 | <tr> |
| 8 | <th width="25%" trspan="name"></th> |
| 9 | <th width="25%" trspan="type"></th> |
| 10 | <th width="35%" trspan="use"></th> |
| 11 | <th></th> |
| 12 | </tr> |
| 13 | </thead> |
| 14 | <tbody> |
| 15 | <tr ng-repeat="s in currentNode.nodes"> |
| 16 | <td> |
| 17 | <input class="form-control" ng-model="s.title" /> |
| 18 | </td> |
| 19 | <td> |
| 20 | <select class="form-control" ng-model="s.data.type" ng-change="execFilters(_findScopeByKey('authParams'))"> |
| 21 | <option ng-repeat="item in currentNode.select" ng-selected="item.k==s.data.type" value="{{item.k}}" trspan="{{item.v}}">{{item.v}}</option> |
| 22 | </select> |
| 23 | </td> |
| 24 | <td> |
| 25 | <select class="form-control" ng-model="s.data.for"> |
| 26 | <option value="0" ng-selected="s.data.for==0" trspan="authAndUserdb"></option> |
| 27 | <option value="1" ng-selected="s.data.for==1" trspan="authOnly"></option> |
| 28 | <option value="2" ng-selected="s.data.for==2" trspan="userdbOnly"></option> |
| 29 | </select> |
| 30 | </td> |
| 31 | <td> |
| 32 | <span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"></span> |
| 33 | <span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newCmbMod'})"></span> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <script type="text/menu"> |
| 40 | [{ |
| 41 | "title": "newCmbMod", |
| 42 | "icon": "plus-sign" |
| 43 | }] |
| 44 | </script> |