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

32 lines
1.1 KiB
HTML
Raw Normal View History

<!--
This form is for hash container with readonly names
Keys like virtual host hostname uses hashkey.html
-->
<div class="panel panel-default">
2015-07-09 17:38:35 +02:00
<div class="panel-heading">
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
</div>
2015-07-21 08:58:58 +02:00
<table class="table table-striped">
<thead>
<tr><th width="40%" trspan="keys"></th><th width="40%" trspan="values"></th><th></th></tr>
</thead>
<tbody>
<tr ng-repeat="s in currentNode.nodes">
<td><input class="form-control" ng-model="s.title"/></td>
<td><input id-"hv-{{s.title}}" class="form-control" ng-model="s.data"/></td>
<td>
2015-07-21 08:58:58 +02:00
<span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"/>
<span ng-if="$last" class="link text-success glyphicon glyphicon-plus-sign" ng-click="menuClick({title:'newEntry',action:'newHashEntry'})"/>
</td>
</tr>
</tbody>
2015-07-21 08:58:58 +02:00
</table>
</div>
<script type="text/javascript">
buttons=[{
'title': 'newEntry',
2015-07-21 08:58:58 +02:00
'action': 'newHashEntry',
'icon': 'plus-sign'
}];
</script>