| 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="20%" trspan="comments"></th> |
| 9 | <th width="30%" trspan="rules"></th> |
| 10 | <th width="50%" trspan="messages"></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.comment" ng-change="changeRuleTitle(s)"/> |
| 18 | </td> |
| 19 | <td> |
| 20 | <input class="form-control" ng-model="s.data"/> |
| 21 | </td> |
| 22 | <td> |
| 23 | <input class="form-control" ng-model="s.re" ng-change="changeRuleTitle(s)"/> |
| 24 | </td> |
| 25 | <td> |
| 26 | <span ng-model="s.title" class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"></span> |
| 27 | <span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newGrantRule',action:'newGrantRule'})"></span> |
| 28 | </td> |
| 29 | </tr> |
| 30 | </tbody> |
| 31 | </table> |
| 32 | </div> |
| 33 | <script type="text/menu"> |
| 34 | [{ |
| 35 | "title": "newGrantRule", |
| 36 | "action": "newGrantRule", |
| 37 | "icon": "plus-sign" |
| 38 | }] |
| 39 | </script> |