| 1 | <div class="panel panel-default"> |
| 2 | <div class="panel-heading"> |
| 3 | <h3 class="panel-title">{{translateTitle(currentNode)}}</h3> |
| 4 | </div> |
| 5 | <table ng-repeat="s in currentNode.nodes" class="table table-striped"> |
| 6 | <tbody> |
| 7 | <tr> |
| 8 | <th trspan="name"></th> |
| 9 | <td> |
| 10 | <input class="form-control" ng-model="s.title" /> |
| 11 | </td> |
| 12 | </tr> |
| 13 | <tr> |
| 14 | <th trspan="type"></th> |
| 15 | <td> |
| 16 | <select class="form-control" ng-model="s.data.type"> |
| 17 | <option ng-repeat="item in currentNode.select" ng-selected="item.k==s.data.type" value="{{item.k}}">{{item.v}}</option> |
| 18 | </select> |
| 19 | </td> |
| 20 | </tr> |
| 21 | <tr> |
| 22 | <th trspan="label"></th> |
| 23 | <td> |
| 24 | <input class="form-control" ng-model="s.data.label" /> |
| 25 | </td> |
| 26 | </tr> |
| 27 | <tr> |
| 28 | <th trspan="logo"></th> |
| 29 | <td> |
| 30 | <input class="form-control" ng-model="s.data.logo" /> |
| 31 | </td> |
| 32 | </tr> |
| 33 | <tr> |
| 34 | <th trspan="level"></th> |
| 35 | <td> |
| 36 | <input class="form-control" ng-model="s.data.level" /> |
| 37 | </td> |
| 38 | </tr> |
| 39 | <tr> |
| 40 | <th trspan="activationrule"></th> |
| 41 | <td> |
| 42 | <input class="form-control" ng-model="s.data.rule" /> |
| 43 | </td> |
| 44 | </tr> |
| 45 | <tr> |
| 46 | <th trspan="registerextra"></th> |
| 47 | <td class="form-horizontal"> |
| 48 | <input type="checkbox" class="form-control checkbox-inline" ng-model="s.data.register" /> |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <th trspan="registerrule"></th> |
| 53 | <td> |
| 54 | <input class="form-control" ng-model="s.data.regrule" /> |
| 55 | </td> |
| 56 | </tr> |
| 57 | <tr> |
| 58 | <td> |
| 59 | <span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"></span> |
| 60 | <span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newSfExtra'})"></span> |
| 61 | </td> |
| 62 | </tr> |
| 63 | </tbody> |
| 64 | </table> |
| 65 | </div> |
| 66 | <script type="text/menu"> |
| 67 | [{ |
| 68 | "title": "newSfExtra", |
| 69 | "icon": "plus-sign" |
| 70 | }] |
| 71 | </script> |