mirror of https://github.com/portainer/portainer
104 lines
4.6 KiB
HTML
104 lines
4.6 KiB
HTML
<rd-header>
|
|
<rd-header-title title="User details">
|
|
<i id="loadingViewSpinner" class="fa fa-cog fa-spin"></i>
|
|
</rd-header-title>
|
|
<rd-header-content>
|
|
<a ui-sref="users">Users</a> > <a ui-sref="user({id: user.Id})">{{ user.Username }}</a>
|
|
</rd-header-content>
|
|
</rd-header>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
<rd-widget>
|
|
<rd-widget-header icon="fa-user" title="User details"></rd-widget-header>
|
|
<rd-widget-body classes="no-padding">
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td><label>Name</label></td>
|
|
<td>
|
|
{{ user.Username }}
|
|
<button class="btn btn-xs btn-danger" ng-click="deleteUser()"><i class="fa fa-trash space-right" aria-hidden="true"></i>Delete this user</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<label for="permissions" class="control-label text-left">
|
|
Administrator
|
|
<portainer-tooltip position="bottom" message="Administrators have access to Portainer settings management as well as full control over all defined endpoints and their resources."></portainer-tooltip>
|
|
</label>
|
|
<label class="switch" style="margin-left: 20px;">
|
|
<input type="checkbox" ng-model="formValues.Administrator" ng-change="updatePermissions()"><i></i>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<!-- <tr ng-if="!formValues.Administrator">
|
|
<td colspan="2">
|
|
<label for="teams" class="control-label text-left">
|
|
Teams
|
|
</label>
|
|
<span class="small text-muted" style="margin-left: 20px;" ng-if="teams.length === 0">
|
|
You have not yet created any team. Head over the <a ui-sref="teams">teams view</a> to manage user teams.</span>
|
|
</span>
|
|
<span isteven-multi-select
|
|
ng-if="teams.length > 0"
|
|
input-model="teams"
|
|
output-model="formValues.Teams"
|
|
button-label="Name"
|
|
item-label="Name"
|
|
tick-property="ticked"
|
|
helper-elements="filter"
|
|
search-property="Name"
|
|
translation="{nothingSelected: 'Select one or more teams', search: 'Search...'}"
|
|
style="margin-left: 20px;"
|
|
on-item-click="onTeamClick(data)"
|
|
</span>
|
|
</td>
|
|
</tr> -->
|
|
</tbody>
|
|
</table>
|
|
</rd-widget-body>
|
|
</rd-widget>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
<rd-widget>
|
|
<rd-widget-header icon="fa-lock" title="Change user password"></rd-widget-header>
|
|
<rd-widget-body>
|
|
<form class="form-horizontal" style="margin-top: 15px;">
|
|
<!-- new-password-input -->
|
|
<div class="form-group">
|
|
<label for="new_password" class="col-sm-2 control-label text-left">New password</label>
|
|
<div class="col-sm-8">
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
|
|
<input type="password" class="form-control" ng-model="formValues.newPassword" id="new_password">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- !new-password-input -->
|
|
<!-- confirm-password-input -->
|
|
<div class="form-group">
|
|
<label for="confirm_password" class="col-sm-2 control-label text-left">Confirm password</label>
|
|
<div class="col-sm-8">
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
|
|
<input type="password" class="form-control" ng-model="formValues.confirmPassword" id="confirm_password">
|
|
<span class="input-group-addon"><i ng-class="{true: 'fa fa-check green-icon', false: 'fa fa-times red-icon'}[formValues.newPassword !== '' && formValues.newPassword === formValues.confirmPassword]" aria-hidden="true"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- !confirm-password-input -->
|
|
<div class="form-group">
|
|
<div class="col-sm-2">
|
|
<button type="submit" class="btn btn-primary btn-sm" ng-disabled="formValues.newPassword === '' || formValues.newPassword !== formValues.confirmPassword" ng-click="updatePassword()">Update password</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</rd-widget-body>
|
|
</rd-widget>
|
|
</div>
|
|
</div>
|