| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
<div class="panel panel-default"> |
| 5 |
<div class="panel-heading"> |
| 6 |
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3> |
| 7 |
</div> |
| 8 |
<div class="panel-body" ng-repeat="n in currentNode.data"> |
| 9 |
<div class="input-group"> |
| 10 |
<span class="input-group-addon" trspan="hostname"></span> |
| 11 |
<input type="text" class="form-control" ng-model="n.k"/> |
| 12 |
</div> |
| 13 |
<table class="table table-striped"> |
| 14 |
<thead> |
| 15 |
<tr> |
| 16 |
<th width="40%" trspan="keys"></th> |
| 17 |
<th width="40%" trspan="values"></th> |
| 18 |
<th> |
| 19 |
<span class="link text-success glyphicon glyphicon-plus-sign" ng-click="n.h.push({'k':'key','v':'uid'})"></span> |
| 20 |
<span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.data,$index)"></span> |
| 21 |
</th> |
| 22 |
</tr> |
| 23 |
</thead> |
| 24 |
<tbody> |
| 25 |
<tr ng-repeat="get in n.h"> |
| 26 |
<td><input class="form-control" ng-model="get.k"/></td> |
| 27 |
<td><input class="form-control" ng-model="get.v"/></td> |
| 28 |
<td> |
| 29 |
<span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="n.h.splice($index,1)"></span> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
</tbody> |
| 33 |
</table> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<script type="text/menu"> |
| 37 |
[{ |
| 38 |
"title": "newHost", |
| 39 |
"action": "addHost", |
| 40 |
"icon": "plus-sign" |
| 41 |
}] |
| 42 |
</script> |