|
|
|
@ -2,12 +2,62 @@
|
|
|
|
|
@inherits PlexRequests.UI.Helpers.AngularViewBase
|
|
|
|
|
|
|
|
|
|
@Html.LoadUserManagementAssets()
|
|
|
|
|
<div ng-controller="userManagementController" ng-init="init()">
|
|
|
|
|
<div id="wrapper" class="toggled" ng-controller="userManagementController" ng-init="init()" ng-cloak>
|
|
|
|
|
<!--Sidebar-->
|
|
|
|
|
<div id="sidebar-wrapper" class="shadow">
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<img ng-show="selectedUser.plexInfo.thumb" class="col-md-pull-1 img-circle" style="position: absolute" ng-src="{{selectedUser.plexInfo.thumb}}" />
|
|
|
|
|
<div hidden="hidden" ng-bind="selectedUser.id"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>Username: </strong><span ng-bind="selectedUser.username"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-show="selectedUser.emailAddress">
|
|
|
|
|
<strong>Email Address: </strong><span ng-bind="selectedUser.emailAddress"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>Permissions: </strong><span ng-bind="selectedUser.claims"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>User Type: </strong><span ng-bind="selectedUser.type === 1 ? 'Local User' : 'Plex User'"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<div ng-show="selectedUser.type === 1">
|
|
|
|
|
<!--Edit-->
|
|
|
|
|
|
|
|
|
|
<strong>Modify Roles:</strong>
|
|
|
|
|
<!--Load all claims-->
|
|
|
|
|
<div class="checkbox" ng-repeat="claim in selectedUser.claimsItem">
|
|
|
|
|
<input id="claimCheckboxEdit_{{$id}}" class="checkbox-custom" name="selectedClaims[]" ng-checked="claim.selected" ng-model="claim.selected" type="checkbox" value="claim" />
|
|
|
|
|
<label for="claimCheckboxEdit_{{$id}}">{{claim.name}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<strong>Email Address</strong>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input id="emailAddress" type="email" ng-model="selectedUser.emailAddress" class="form-control form-control-custom" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<strong>Alias</strong>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input id="alias" type="text" ng-model="selectedUser.alias" class="form-control form-control-custom" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button ng-click="updateUser()" class="btn btn-primary-outline">Update</button>
|
|
|
|
|
<button ng-click="deleteUser()" class="btn btn-danger-outline">Delete</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!--SideBar End-->
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<div class="col-md-7">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<div ng-show="error.error" ng-bind="error.errorMessage"></div>
|
|
|
|
@ -105,63 +155,16 @@
|
|
|
|
|
<td>
|
|
|
|
|
{{u.type === 1 ? 'Local User' : 'Plex User'}}
|
|
|
|
|
</td>
|
|
|
|
|
<td ng-bind="u.lastLoggedIn === minDate ? 'Never' : formatDate(u.lastLoggedIn)"></td>
|
|
|
|
|
<td>
|
|
|
|
|
{{u.lastLoggedIn}}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="#" ng-click="selectUser(u.id)" class="btn btn-sm btn-info-outline">Details/Edit</a>
|
|
|
|
|
<a href="#" ng-click="selectUser(u.id)" class="btn btn-sm btn-info-outline detailsBtn">Details/Edit</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-md-5 col-md-push-1 user-management-menu" ng-show="selectedUser.username">
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<img ng-show="selectedUser.plexInfo.thumb" class="col-md-pull-1 img-circle" style="position: absolute" ng-src="{{selectedUser.plexInfo.thumb}}" />
|
|
|
|
|
<div hidden="hidden" ng-bind="selectedUser.id"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>Username: </strong><span ng-bind="selectedUser.username"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-show="selectedUser.emailAddress">
|
|
|
|
|
<strong>Email Address: </strong><span ng-bind="selectedUser.emailAddress"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>Permissions: </strong><span ng-bind="selectedUser.claims"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<strong>User Type: </strong><span ng-bind="selectedUser.type === 1 ? 'Local User' : 'Plex User'"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<div ng-show="selectedUser.type === 1">
|
|
|
|
|
<!--Edit-->
|
|
|
|
|
|
|
|
|
|
<strong>Modify Roles:</strong>
|
|
|
|
|
<!--Load all claims-->
|
|
|
|
|
<div class="checkbox" ng-repeat="claim in selectedUser.claimsItem">
|
|
|
|
|
<input id="claimCheckboxEdit_{{$id}}" class="checkbox-custom" name="selectedClaims[]" ng-checked="claim.selected" ng-model="claim.selected" type="checkbox" value="claim" />
|
|
|
|
|
<label for="claimCheckboxEdit_{{$id}}">{{claim.name}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<strong>Email Address</strong>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input id="emailAddress" type="email" ng-model="selectedUser.emailAddress" class="form-control form-control-custom" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<strong>Alias</strong>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<input id="alias" type="text" ng-model="selectedUser.alias" class="form-control form-control-custom" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button ng-click="updateUser()" class="btn btn-primary-outline">Update</button>
|
|
|
|
|
<button ng-click="deleteUser()" class="btn btn-danger-outline">Delete</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> <!-- End of user side menu -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|