| 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 trspan="comments"></th> |
| 9 | <th trspan="regexps"></th> |
| 10 | <th trspan="rules"></th> |
| 11 | <th class="th_rulesAuthnLevel" trspan="rulesAuthnLevel"></th> |
| 12 | <th class="th_rulesAuthnLevel"></th> |
| 13 | </tr> |
| 14 | </thead> |
| 15 | <tbody> |
| 16 | <tr ng-repeat="s in currentNode.nodes"> |
| 17 | <td ng-if="s.re!='default'"> |
| 18 | <input class="form-control" ng-model="s.comment" ng-change="changeRuleTitle(s)"/> |
| 19 | </td> |
| 20 | <td ng-if="s.re!='default'"> |
| 21 | <input class="form-control" ng-model="s.re" ng-change="changeRuleTitle(s)"/> |
| 22 | </td> |
| 23 | <td ng-if="s.re=='default'"> |
| 24 | <p><strong><span trspan="defaultRule"></span></strong></p> |
| 25 | </td> |
| 26 | <td ng-if="s.re=='default'"> |
| 27 | <input class="form-control" placeholder="default" readonly/> |
| 28 | </td> |
| 29 | <td> |
| 30 | <input class="form-control" ng-model="s.data"/> |
| 31 | </td> |
| 32 | <td ng-if="s.re!='default'"> |
| 33 | <input type="number" class="form-control" ng-model="s.level"/> |
| 34 | </td> |
| 35 | <td ng-if="s.re=='default'"> |
| 36 | <input class="form-control" placeholder="default" readonly/> |
| 37 | </td> |
| 38 | <td> |
| 39 | <span ng-if="s.re!='default'" class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"></span> |
| 40 | <span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newRule'})"></span> |
| 41 | </td> |
| 42 | </tr> |
| 43 | </tbody> |
| 44 | </table> |
| 45 | </div> |
| 46 | <script type="text/menu"> |
| 47 | [{ |
| 48 | "title": "newRule", |
| 49 | "icon": "plus-sign" |
| 50 | }] |
| 51 | </script> |