2016-06-03 13:34:14 +02:00
|
|
|
<!--
|
|
|
|
Special container to show hash in hash
|
|
|
|
-->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
|
|
|
|
</div>
|
2016-06-04 09:11:03 +02:00
|
|
|
<div class="panel-body" ng-repeat="n in currentNode.data">
|
2016-06-03 13:34:14 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon" trspan="hostname"></span>
|
2016-06-04 09:11:03 +02:00
|
|
|
<input type="text" class="form-control" ng-model="n.k"/>
|
2016-06-03 13:34:14 +02:00
|
|
|
</div>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
2016-06-04 09:11:03 +02:00
|
|
|
<tr>
|
|
|
|
<th width="40%" trspan="keys"></th>
|
|
|
|
<th width="40%" trspan="values"></th>
|
|
|
|
<th><span class="link text-success glyphicon glyphicon-plus-sign" ng-click="n.h.push({'k':'key','v':'uid'})"/></th>
|
|
|
|
</tr>
|
2016-06-03 13:34:14 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-06-04 09:11:03 +02:00
|
|
|
<tr ng-repeat="get in n.h">
|
|
|
|
<td><input class="form-control" ng-model="get.k"/></td>
|
|
|
|
<td><input class="form-control" ng-model="get.v"/></td>
|
2016-06-03 13:34:14 +02:00
|
|
|
<td>
|
2016-06-04 09:11:03 +02:00
|
|
|
<span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="n.h.splice($index,1)"/>
|
2016-06-03 13:34:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/menu">
|
|
|
|
[{
|
2017-01-18 17:31:53 +01:00
|
|
|
"title": "newHost",
|
|
|
|
"action": "addHost",
|
|
|
|
"icon": "plus-sign"
|
2016-06-03 13:34:14 +02:00
|
|
|
}]
|
|
|
|
</script>
|