lemonldap-ng/lemonldap-ng-manager/site/htdocs/static/forms/authChoiceContainer.html
2018-04-25 15:40:19 +02:00

46 lines
1.6 KiB
HTML

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
</div>
<table class="table table-striped">
<thead>
<tr>
<th id="namelabel" trspan="name"></th>
<th id="authlabel" trspan="authentication"></th>
<th id="userdblabel" trspan="userDB"></th>
<th id="pwdlabel" trspan="passwordDB"></th>
<th id="urllabel" trspan="url"></th>
<th id="condlabel" trspan="condition"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="c in currentNode.nodes">
<td>
<input class="form-control" ng-model="c.title" aria-decribedby="namelabel">
</td>
<td ng-repeat="i in [0,1,2]">
<select class="form-control" ng-model="c.data[i]" ng-change="execFilters(_findScopeByKey('authParams'))" aria-decribedby="{{['authlabel','userdblabel','pwdlabel'][i]}}">
<option ng-repeat="item in currentNode.select[i]" ng-selected="item.k==c.data[i]" value="{{item.k}}">{{item.v}}</option>
</select>
</td>
<td>
<input class="form-control" ng-model="c.data[3]" aria-describedby="urllabel">
</td>
<td>
<input class="form-control" ng-model="c.data[4]" aria-describedby="condlabel">
</td>
<td>
<span class="link text-danger glyphicon glyphicon-minus-sign" ng-click="del(currentNode.nodes,$index)"/>
</td>
</tr>
</tbody>
</table>
</div>
<script type="text/menu">
[{
"action": "newAuthChoice",
"title": "newChain",
"icon": "plus-sign"
}]
</script>