mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
118 lines
5.5 KiB
HTML
118 lines
5.5 KiB
HTML
<!--
|
|
Copyright 2015 Glyptodon LLC.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
-->
|
|
|
|
<div class="manage-user view" ng-class="{loading: !isLoaded()}">
|
|
|
|
<!-- User header and data source tabs -->
|
|
<div class="username header">
|
|
<h2>{{'MANAGE_USER.SECTION_HEADER_EDIT_USER' | translate}}</h2>
|
|
<guac-user-menu></guac-user-menu>
|
|
</div>
|
|
<div class="page-tabs">
|
|
<guac-page-list pages="accountPages"></guac-page-list>
|
|
</div>
|
|
|
|
<!-- Warn if user is read-only -->
|
|
<div class="section" ng-show="isReadOnly()">
|
|
<p class="notice read-only">{{'MANAGE_USER.INFO_READ_ONLY' | translate}}</p>
|
|
</div>
|
|
|
|
<!-- Sections applicable to non-read-only users -->
|
|
<div ng-show="!isReadOnly()">
|
|
|
|
<!-- User password section -->
|
|
<div class="section">
|
|
<table class="properties">
|
|
<tr>
|
|
<th>{{'MANAGE_USER.FIELD_HEADER_USERNAME' | translate}}</th>
|
|
<td>
|
|
<input ng-show="canEditUsername()" ng-model="user.username" type="text"/>
|
|
<span ng-hide="canEditUsername()">{{user.username}}</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{'MANAGE_USER.FIELD_HEADER_PASSWORD' | translate}}</th>
|
|
<td><input ng-model="user.password" type="password" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{'MANAGE_USER.FIELD_HEADER_PASSWORD_AGAIN' | translate}}</th>
|
|
<td><input ng-model="passwordMatch" type="password" /></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- User attributes section -->
|
|
<div class="attributes" ng-show="canChangeAttributes()">
|
|
<guac-form namespace="'USER_ATTRIBUTES'" content="attributes" model="user.attributes"></guac-form>
|
|
</div>
|
|
|
|
<!-- System permissions section -->
|
|
<div class="system-permissions" ng-show="canChangePermissions()">
|
|
<h2 class="header">{{'MANAGE_USER.SECTION_HEADER_PERMISSIONS' | translate}}</h2>
|
|
<div class="section">
|
|
<table class="properties">
|
|
<tr ng-repeat="systemPermissionType in systemPermissionTypes"
|
|
ng-show="canChangeSystemPermissions()">
|
|
<th>{{systemPermissionType.label | translate}}</th>
|
|
<td><input type="checkbox" ng-model="permissionFlags.systemPermissions[systemPermissionType.value]"
|
|
ng-change="systemPermissionChanged(systemPermissionType.value)"/></td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{'MANAGE_USER.FIELD_HEADER_CHANGE_OWN_PASSWORD' | translate}}</th>
|
|
<td><input type="checkbox" ng-model="permissionFlags.userPermissions.UPDATE[user.username]"
|
|
ng-change="userPermissionChanged('UPDATE', user.username)"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Connection permissions section -->
|
|
<div class="connection-permissions" ng-show="canChangePermissions()">
|
|
<div class="header">
|
|
<h2>{{'MANAGE_USER.SECTION_HEADER_CONNECTIONS' | translate}}</h2>
|
|
<guac-group-list-filter connection-groups="rootGroups"
|
|
filtered-connection-groups="filteredRootGroups"
|
|
placeholder="'MANAGE_USER.FIELD_PLACEHOLDER_FILTER' | translate"
|
|
connection-properties="filteredConnectionProperties"
|
|
connection-group-properties="filteredConnectionGroupProperties"></guac-group-list-filter>
|
|
</div>
|
|
<div class="section">
|
|
<guac-group-list
|
|
context="groupListContext"
|
|
connection-groups="filteredRootGroups"
|
|
connection-template="'app/manage/templates/connectionPermission.html'"
|
|
connection-group-template="'app/manage/templates/connectionGroupPermission.html'"
|
|
page-size="20"/>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Form action buttons -->
|
|
<div class="action-buttons">
|
|
<button ng-show="canSaveUser()" ng-click="saveUser()">{{'MANAGE_USER.ACTION_SAVE' | translate}}</button>
|
|
<button ng-click="cancel()">{{'MANAGE_USER.ACTION_CANCEL' | translate}}</button>
|
|
<button ng-show="canDeleteUser()" ng-click="deleteUser()" class="danger">{{'MANAGE_USER.ACTION_DELETE' | translate}}</button>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|