Add optional URL in authChoice entries (Closes: #884)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 10 years ago
parent 5bdea0260b
commit 3e854253c6
  1. 10
      lemonldap-ng-manager/site/static/forms/authChoice.html
  2. 6
      lemonldap-ng-manager/site/static/forms/authChoiceContainer.html

@ -7,17 +7,23 @@
<tr>
<td trspan="name"></td>
<td>
<input ng-model="currentNode.title">
<input class="form-control" ng-model="currentNode.title">
</td>
</tr>
<tr ng-repeat="i in [[0,'authentication'],[1,'userDB'],[2,'passwordDB']]">
<td trspan="{{i[1]}}"</td>
<td trspan="{{i[1]}}"></td>
<td>
<select id="selectform" class="form-control" ng-model="currentNode.data[i[0]]" ng-change="execFilters(_findScopeByKey('authParams'))">
<option ng-repeat="item in _findContainer().select[i[0]]" ng-selected="item.k==currentNode.data[i[0]]" value="{{item.k}}">{{item.v}}</option>
</select>
</td>
</tr>
<tr>
<td trspan="url"></td>
<td>
<input class="form-control" ng-model="currentNode.data[3]">
</td>
</tr>
</tbody>
</table>
</div>

@ -9,18 +9,22 @@
<th trspan="authentication"></th>
<th trspan="userDB"></th>
<th trspan="passwordDB"></th>
<th trspan="url"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="c in currentNode.nodes">
<td>
<input ng-model="c.title">
<input class="form-control" ng-model="c.title">
</td>
<td ng-repeat="i in [0,1,2]">
<select class="form-control" ng-model="c.data[i]" ng-change="execFilters(_findScopeByKey('authParams'))">
<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]">
</td>
</tr>
</tbody>
</table>

Loading…
Cancel
Save