Merge pull request #1748 from stianst/tweak-auth-page
Tweak authentication flow page a bit
This commit is contained in:
commit
c21b56d596
2 changed files with 21 additions and 17 deletions
|
@ -26,16 +26,20 @@
|
||||||
<tr data-ng-hide="executions.length == 0">
|
<tr data-ng-hide="executions.length == 0">
|
||||||
<th colspan="{{levelmax + 1}}">Auth Type</th>
|
<th colspan="{{levelmax + 1}}">Auth Type</th>
|
||||||
<th colspan="{{choicesmax}}">Requirement</th>
|
<th colspan="{{choicesmax}}">Requirement</th>
|
||||||
<th></th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="execution in executions" data-ng-show="executions.length > 0">
|
<tr ng-repeat="execution in executions" data-ng-show="executions.length > 0">
|
||||||
<td ng-repeat="lev in execution.preLevels"></td>
|
<td ng-repeat="lev in execution.preLevels"></td>
|
||||||
<td><button data-ng-hide="flow.builtIn || $first" class="btn btn-default" data-ng-click="raisePriority(execution)"><i class="fa fa-angle-up"></i></button><button data-ng-hide="flow.builtIn || $last" class="btn btn-default" data-ng-click="lowerPriority(execution)"><i class="fa fa-angle-down"></i></button> {{execution.displayName|capitalize}}</td>
|
<td class="kc-sorter">
|
||||||
|
<button data-ng-hide="flow.builtIn" data-ng-disabled="$first" class="btn btn-default btn-sm" data-ng-click="raisePriority(execution)"><i class="fa fa-angle-up"></i></button>
|
||||||
|
<button data-ng-hide="flow.builtIn" data-ng-disabled="$last" class="btn btn-default btn-sm" data-ng-click="lowerPriority(execution)"><i class="fa fa-angle-down"></i></button>
|
||||||
|
<span>{{execution.displayName|capitalize}}</span>
|
||||||
|
</td>
|
||||||
<td ng-repeat="lev in execution.postLevels"></td>
|
<td ng-repeat="lev in execution.postLevels"></td>
|
||||||
<td ng-repeat="choice in execution.requirementChoices">
|
<td ng-repeat="choice in execution.requirementChoices">
|
||||||
<label >
|
<label>
|
||||||
<input type="radio" ng-model="execution.requirement" ng-value="choice" ng-change="updateExecution(execution)">
|
<input type="radio" ng-model="execution.requirement" ng-value="choice" ng-change="updateExecution(execution)">
|
||||||
{{choice}}
|
{{choice}}
|
||||||
</label>
|
</label>
|
||||||
|
@ -43,20 +47,16 @@
|
||||||
</td>
|
</td>
|
||||||
<td ng-repeat="emptee in execution.empties"></td>
|
<td ng-repeat="emptee in execution.empties"></td>
|
||||||
<td>
|
<td>
|
||||||
<ul class="nav navbar-nav navbar-utility" data-ng-hide="flow.builtIn && !execution.configurable">
|
<div class="dropdown" data-ng-hide="flow.builtIn && !execution.configurable">
|
||||||
<li class="dropdown">
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Actions <b class="caret"></b></a>
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
<ul class="dropdown-menu" >
|
||||||
Actions <b class="caret"></b>
|
<li data-ng-hide="flow.builtIn"><a href="" ng-click="removeExecution(execution)">Delete</a></li>
|
||||||
</a>
|
<li data-ng-hide="flow.builtIn || !execution.authenticationFlow"><a href="" ng-click="addSubFlowExecution(execution)">Add Execution</a></li>
|
||||||
<ul class="dropdown-menu" >
|
<li data-ng-hide="flow.builtIn || !execution.authenticationFlow"><a href="" ng-click="addSubFlow(execution)">Add Flow</a></li>
|
||||||
<li data-ng-hide="flow.builtIn"><a href="" ng-click="removeExecution(execution)">Delete</a></li>
|
<li data-ng-show="execution.configurable && execution.authenticationConfig == null"><a href="#/create/authentication/{{realm.realm}}/execution/{{execution.id}}/provider/{{execution.providerId}}">Config</a></li>
|
||||||
<li data-ng-hide="flow.builtIn || !execution.authenticationFlow"><a href="" ng-click="addSubFlowExecution(execution)">Add Execution</a></li>
|
<li data-ng-show="execution.configurable && execution.authenticationConfig != null"><a href="#/realms/{{realm.realm}}/authentication/config/{{execution.providerId}}/{{execution.authenticationConfig}}">Config</a></li>
|
||||||
<li data-ng-hide="flow.builtIn || !execution.authenticationFlow"><a href="" ng-click="addSubFlow(execution)">Add Flow</a></li>
|
</ul>
|
||||||
<li data-ng-show="execution.configurable && execution.authenticationConfig == null"><a href="#/create/authentication/{{realm.realm}}/execution/{{execution.id}}/provider/{{execution.providerId}}">Config</a></li>
|
</div>
|
||||||
<li data-ng-show="execution.configurable && execution.authenticationConfig != null"><a href="#/realms/{{realm.realm}}/authentication/config/{{execution.providerId}}/{{execution.authenticationConfig}}">Config</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr data-ng-show="executions.length == 0">
|
<tr data-ng-show="executions.length == 0">
|
||||||
|
|
|
@ -305,6 +305,10 @@ h1 i {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kc-sorter span {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Time selector */
|
/* Time selector */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue