lemonldap-ng/lemonldap-ng-manager/site/static/forms/doubleHash.html

40 lines
1.2 KiB
HTML
Raw Normal View History

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>
<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>
<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>
<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>
<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>
<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">
[{
'title': 'newHost',
2017-01-18 00:17:23 +01:00
'action': "addHost",
2016-06-03 13:34:14 +02:00
'icon': 'plus-sign'
}]
</script>