| 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 id="namelabel" trspan="name"></th> |
| 9 | <th id="authlabel" trspan="authentication"></th> |
| 10 | <th id="userdblabel" trspan="userDB"></th> |
| 11 | <th id="pwdlabel" trspan="passwordDB"></th> |
| 12 | <th id="urllabel" trspan="url"></th> |
| 13 | <th id="condlabel" trspan="condition"></th> |
| 14 | </tr> |
| 15 | </thead> |
| 16 | <tbody> |
| 17 | <tr ng-repeat="c in currentNode.nodes"> |
| 18 | <td width="12%"> |
| 19 | <input class="form-control" ng-model="c.title" aria-decribedby="namelabel"> |
| 20 | </td> |
| 21 | <td width="16%" ng-repeat="i in [0,1,2]"> |
| 22 | <select class="form-control" ng-model="c.data[i]" ng-change="execFilters(_findScopeByKey('authParams'))" aria-decribedby="{{['authlabel','userdblabel','pwdlabel'][i]}}"> |
| 23 | <option ng-repeat="item in currentNode.select[i]" ng-selected="item.k==c.data[i]" value="{{item.k}}" trspan="{{item.v}}">{{item.v}}</option> |
| 24 | </select> |
| 25 | </td> |
| 26 | <td width="20%"> |
| 27 | <input class="form-control" ng-model="c.data[3]" aria-describedby="urllabel"> |
| 28 | </td> |
| 29 | <td width="15%"> |
| 30 | <input class="form-control" ng-model="c.data[4]" aria-describedby="condlabel"> |
| 31 | </td> |
| 32 | <td width="5%"> |
| 33 | <span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"></span> |
| 34 | <span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newChain',action: 'newAuthChoice'})"></span> |
| 35 | </td> |
| 36 | </tr> |
| 37 | </tbody> |
| 38 | </table> |
| 39 | </div> |
| 40 | <script type="text/menu"> |
| 41 | [{ |
| 42 | "action": "newAuthChoice", |
| 43 | "title": "newChain", |
| 44 | "icon": "plus-sign" |
| 45 | }] |
| 46 | </script> |