2015-04-20 18:13:27 +00:00
|
|
|
<div class="super-user">
|
2015-01-23 22:19:15 +00:00
|
|
|
<div class="cor-loader" ng-show="!configStatus"></div>
|
|
|
|
<div class="page-content" quay-show="Features.SUPER_USERS && configStatus == 'ready'">
|
2015-01-26 18:46:57 +00:00
|
|
|
<div ng-if="requiresRestart" class="alert alert-warning restart-required">
|
|
|
|
<button class="btn btn-warning" ng-click="restartContainer()">
|
|
|
|
<i class="fa fa-refresh"></i>Restart Now
|
|
|
|
</button>
|
|
|
|
<i class="fa fa-lg fa-warning"></i>
|
|
|
|
<div><strong>Container restart required!</strong></div>
|
|
|
|
Configuration changes have been made but the container hasn't been restarted yet.
|
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="cor-title">
|
|
|
|
<span class="cor-title-link"></span>
|
2016-02-05 10:16:23 +00:00
|
|
|
<span class="cor-title-content">Quay Enterprise Management</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div>
|
2014-10-01 17:55:09 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="cor-tab-panel">
|
|
|
|
<div class="cor-tabs">
|
2015-01-23 22:19:15 +00:00
|
|
|
<span class="cor-tab" tab-active="true" tab-title="Manage Users"
|
|
|
|
tab-target="#users" tab-init="loadUsers()">
|
2015-01-04 19:38:41 +00:00
|
|
|
<i class="fa fa-group"></i>
|
|
|
|
</span>
|
2015-05-11 22:03:25 +00:00
|
|
|
<span class="cor-tab" tab-title="Manage Organizations"
|
|
|
|
tab-target="#organizations" tab-init="loadOrganizations()">
|
|
|
|
<i class="fa fa-sitemap"></i>
|
|
|
|
</span>
|
2016-04-01 17:55:29 +00:00
|
|
|
<span class="cor-tab" tab-title="Manage Service Keys"
|
|
|
|
tab-target="#servicekeys" tab-init="loadServiceKeys()">
|
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
</span>
|
2015-06-28 05:27:39 +00:00
|
|
|
<span class="cor-tab" tab-title="Change Log" tab-target="#change-log" tab-init="getChangeLog()">
|
|
|
|
<i class="fa fa-rss"></i>
|
2015-01-04 19:38:41 +00:00
|
|
|
</span>
|
|
|
|
<span class="cor-tab" tab-title="Usage Logs" tab-target="#logs" tab-init="loadUsageLogs()">
|
|
|
|
<i class="fa fa-bar-chart"></i>
|
|
|
|
</span>
|
|
|
|
<span class="cor-tab" tab-title="Internal Logs and Debugging" tab-target="#debug" tab-init="loadDebugServices()">
|
|
|
|
<i class="fa fa-bug"></i>
|
|
|
|
</span>
|
2015-04-20 18:13:27 +00:00
|
|
|
<span class="cor-tab hidden-xs" tab-title="Registry Settings" tab-target="#setup"
|
2015-01-23 22:19:15 +00:00
|
|
|
tab-init="loadConfig()">
|
|
|
|
<i class="fa fa-cog"></i>
|
|
|
|
</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div> <!-- /cor-tabs -->
|
2014-10-28 20:33:13 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="cor-tab-content">
|
|
|
|
<!-- Setup tab -->
|
2015-01-23 22:19:15 +00:00
|
|
|
<div id="setup" class="tab-pane">
|
2015-01-26 18:46:57 +00:00
|
|
|
<div class="config-setup-tool" is-active="configStatus == 'ready'"
|
2015-09-02 21:21:38 +00:00
|
|
|
configuration-saved="configurationSaved(config)"></div>
|
2014-10-01 17:55:09 +00:00
|
|
|
</div>
|
2014-12-23 16:40:51 +00:00
|
|
|
|
2016-04-01 17:55:29 +00:00
|
|
|
<!-- Service keys tab -->
|
|
|
|
<div id="servicekeys" class="tab-pane">
|
|
|
|
<div class="service-keys-manager" is-enabled="serviceKeysActive"></div>
|
|
|
|
</div>
|
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<!-- Debugging tab -->
|
|
|
|
<div id="debug" class="tab-pane">
|
2015-01-23 22:19:15 +00:00
|
|
|
<div class="cor-loader" ng-show="!debugServices"></div>
|
2014-10-01 17:55:09 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<div role="tabpanel" ng-show="debugServices">
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li role="presentation" ng-repeat="service in debugServices"
|
|
|
|
ng-class="debugService == service ? 'active' : ''">
|
2016-03-22 18:15:54 +00:00
|
|
|
<a ng-click="viewSystemLogs(service)">{{ service }}</a>
|
2015-01-04 19:38:41 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="system-log-download-panel" ng-if="!debugService">
|
|
|
|
Select a service above to view its local logs
|
|
|
|
|
|
|
|
<div>
|
2016-04-28 18:38:22 +00:00
|
|
|
<a class="btn btn-primary" href="/systemlogsarchive?_csrf_token={{ csrf_token }}" ng-safenewtab>
|
2015-01-04 19:38:41 +00:00
|
|
|
<i class="fa fa-download fa-lg" style="margin-right: 4px;"></i> Download All Local Logs (.tar.gz)
|
|
|
|
</a>
|
2014-11-24 21:07:38 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="cor-log-box" logs="debugLogs" ng-show="debugService"></div>
|
2014-04-10 04:26:55 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div>
|
2014-04-10 04:26:55 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<!-- Logs tab -->
|
|
|
|
<div id="logs" class="tab-pane">
|
|
|
|
<div class="logsView" makevisible="logsCounter" all-logs="true"></div>
|
|
|
|
</div> <!-- /logs tab-->
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2015-06-28 05:27:39 +00:00
|
|
|
<!-- Change Log tab -->
|
|
|
|
<div id="change-log" class="tab-pane">
|
|
|
|
<h3 style="margin-top: 0px;">Change Log</h3>
|
|
|
|
<div class="cor-loader" ng-if="!changeLog"></div>
|
|
|
|
<div class="markdown-view" content="changeLog.log" ng-if="changeLog"></div>
|
|
|
|
</div> <!-- /change-log tab-->
|
2015-01-04 19:38:41 +00:00
|
|
|
|
2015-05-11 22:03:25 +00:00
|
|
|
<!-- Organizations tab -->
|
|
|
|
<div id="organizations" class="tab-pane">
|
|
|
|
<div class="resource-view" resource="organizationsResource"
|
|
|
|
error-message="'Could not load organizations'">
|
|
|
|
<div class="manager-header" header-title="Organizations">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="filter-box" collection="organization" filter-model="search" filter-name="Organizations"></div>
|
|
|
|
|
|
|
|
<table class="cor-table">
|
|
|
|
<thead>
|
|
|
|
<td style="width: 24px;"></td>
|
|
|
|
<td>Name</td>
|
2015-10-16 19:17:51 +00:00
|
|
|
<td>Admin E-mail</td>
|
2015-05-11 22:03:25 +00:00
|
|
|
<td style="width: 24px;"></td>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr ng-repeat="current_org in (organizations | filter:search | orderBy:'name')"
|
|
|
|
class="org-row">
|
|
|
|
<td>
|
|
|
|
<span class="avatar" data="current_org.avatar" size="24"></span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ current_org.name }}
|
|
|
|
</td>
|
2015-10-16 19:17:51 +00:00
|
|
|
<td>
|
|
|
|
<a href="mailto:{{ current_org.email }}">{{ current_org.email }}</a>
|
|
|
|
</td>
|
2015-05-11 22:03:25 +00:00
|
|
|
<td style="text-align: center;">
|
|
|
|
<span class="cor-options-menu">
|
|
|
|
<span class="cor-option" option-click="askRenameOrganization(current_org)">
|
|
|
|
<i class="fa fa-arrow-right"></i> Rename Organization
|
|
|
|
</span>
|
|
|
|
<span class="cor-option" option-click="askDeleteOrganization(current_org)">
|
|
|
|
<i class="fa fa-times"></i> Delete Organization
|
|
|
|
</span>
|
2016-06-07 22:12:11 +00:00
|
|
|
<span class="cor-option" option-click="askTakeOwnership(current_org, true)">
|
|
|
|
<i class="fa fa-bolt"></i> Take Ownership
|
|
|
|
</span>
|
2015-05-11 22:03:25 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div> <!-- /resource -->
|
|
|
|
</div> <!-- organizations tab -->
|
|
|
|
|
2015-01-23 22:19:15 +00:00
|
|
|
<!-- Users tab -->
|
|
|
|
<div id="users" class="tab-pane active">
|
|
|
|
<div class="cor-loader" ng-show="!users"></div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="alert alert-error" ng-show="usersError">
|
|
|
|
{{ usersError }}
|
|
|
|
</div>
|
|
|
|
<div ng-show="users">
|
2015-04-20 18:13:27 +00:00
|
|
|
<div class="manager-header" header-title="Users">
|
2015-10-16 19:14:49 +00:00
|
|
|
<button class="create-button btn btn-primary" ng-click="showCreateUser()"
|
|
|
|
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
2015-01-04 19:38:41 +00:00
|
|
|
<i class="fa fa-plus" style="margin-right: 6px;"></i>Create User
|
|
|
|
</button>
|
2015-10-16 19:14:49 +00:00
|
|
|
<span class="co-alert co-alert-info" quay-show="Config.AUTHENTICATION_TYPE != 'Database'">
|
|
|
|
Note: <span class="registry-name"></span> is configured to use external authentication, so users can only be created in that system
|
|
|
|
</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div>
|
2014-04-10 04:26:55 +00:00
|
|
|
|
2015-04-20 18:13:27 +00:00
|
|
|
<div class="filter-box" collection="users" filter-model="search" filter-name="Users"></div>
|
|
|
|
|
|
|
|
<table class="cor-table">
|
2014-12-23 19:25:04 +00:00
|
|
|
<thead>
|
2015-04-20 18:13:27 +00:00
|
|
|
<td style="width: 24px;"></td>
|
|
|
|
<td>Username</td>
|
|
|
|
<td>E-mail address</td>
|
|
|
|
<td style="width: 24px;"></td>
|
2014-12-23 19:25:04 +00:00
|
|
|
</thead>
|
|
|
|
|
2015-04-20 18:13:27 +00:00
|
|
|
<tr ng-repeat="current_user in (users | filter:search | orderBy:'username')"
|
2015-05-11 21:13:42 +00:00
|
|
|
class="user-row"
|
|
|
|
ng-class="current_user.enabled ? 'enabled': 'disabled'">
|
2015-01-04 19:38:41 +00:00
|
|
|
<td>
|
2015-03-30 21:55:04 +00:00
|
|
|
<span class="avatar" data="current_user.avatar" size="24"></span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="labels">
|
2015-05-11 18:38:10 +00:00
|
|
|
<span class="label label-success" ng-if="user.username == current_user.username">You</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
<span class="label label-primary"
|
2015-05-11 18:38:10 +00:00
|
|
|
ng-if="current_user.super_user">Superuser</span>
|
2015-05-11 21:13:42 +00:00
|
|
|
<span class="label label-default"
|
|
|
|
ng-if="!current_user.enabled">Disabled</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</span>
|
|
|
|
{{ current_user.username }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="mailto:{{ current_user.email }}">{{ current_user.email }}</a>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<span class="cor-options-menu"
|
|
|
|
ng-if="user.username != current_user.username && !current_user.super_user">
|
2015-10-16 19:38:06 +00:00
|
|
|
<span class="cor-option" option-click="setSuperuser(current_user, true)"
|
|
|
|
quay-show="!current_user.super_user">
|
|
|
|
<i class="fa">Ω</i>
|
|
|
|
Make Superuser
|
|
|
|
</span>
|
|
|
|
<span class="cor-option" option-click="setSuperuser(current_user, false)"
|
|
|
|
quay-show="current_user.super_user">
|
|
|
|
<i class="fa">ω</i>
|
|
|
|
Remove Superuser
|
|
|
|
</span>
|
|
|
|
|
2015-10-16 19:14:49 +00:00
|
|
|
<span class="cor-option" option-click="showChangeEmail(current_user)"
|
|
|
|
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
2015-05-11 18:38:10 +00:00
|
|
|
<i class="fa fa-envelope-o"></i> Change E-mail Address
|
|
|
|
</span>
|
2015-10-16 19:14:49 +00:00
|
|
|
<span class="cor-option" option-click="showChangePassword(current_user)"
|
|
|
|
quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
2015-01-04 19:38:41 +00:00
|
|
|
<i class="fa fa-key"></i> Change Password
|
|
|
|
</span>
|
|
|
|
<span class="cor-option" option-click="sendRecoveryEmail(current_user)"
|
2015-10-16 19:14:49 +00:00
|
|
|
quay-show="Features.MAILING && Config.AUTHENTICATION_TYPE == 'Database'">
|
2015-05-11 18:38:10 +00:00
|
|
|
<i class="fa fa-envelope"></i> Send Recovery E-mail
|
2015-01-04 19:38:41 +00:00
|
|
|
</span>
|
|
|
|
<span class="cor-option" option-click="showDeleteUser(current_user)">
|
|
|
|
<i class="fa fa-times"></i> Delete User
|
|
|
|
</span>
|
2015-05-11 21:13:42 +00:00
|
|
|
<span class="cor-option" option-click="askDisableUser(current_user)">
|
|
|
|
<i class="fa" ng-class="current_user.enabled ? 'fa-circle-o' : 'fa-check-circle-o'"></i> <span ng-if="current_user.enabled">Disable</span> <span ng-if="!current_user.enabled">Enable</span> User
|
|
|
|
</span>
|
2016-06-07 22:12:11 +00:00
|
|
|
<span class="cor-option" option-click="askTakeOwnership(current_user, false)"
|
|
|
|
ng-if="user.username != current_user.username && !current_user.super_user">
|
|
|
|
<i class="fa fa-bolt"></i> Take Ownership
|
|
|
|
</span>
|
2015-01-04 19:38:41 +00:00
|
|
|
</span>
|
|
|
|
</td>
|
2014-12-23 19:25:04 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div> <!-- /show if users -->
|
|
|
|
</div> <!-- users-tab -->
|
2015-05-11 22:03:25 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
</div> <!-- /cor-tab-content -->
|
|
|
|
</div> <!-- /cor-tab-panel -->
|
|
|
|
|
2016-06-07 22:12:11 +00:00
|
|
|
<!-- Take ownership dialog -->
|
|
|
|
<div class="cor-confirm-dialog take-ownership-dialog"
|
|
|
|
dialog-context="takeOwnershipInfo"
|
|
|
|
dialog-action="takeOwnership(info, callback)"
|
|
|
|
dialog-title="Take Ownership"
|
|
|
|
dialog-action-title="Take Ownership">
|
|
|
|
Are you sure you want to take ownership of
|
|
|
|
<span ng-if="takeOwnershipInfo.is_org">organization <span class="avatar" data="takeOwnershipInfo.entity.avatar" size="16"></span> {{ takeOwnershipInfo.entity.name }}?</span>
|
|
|
|
<span ng-if="!takeOwnershipInfo.is_org">user namespace <span class="avatar" data="takeOwnershipInfo.entity.avatar" size="16"></span> {{ takeOwnershipInfo .entity.username }}?</span>
|
|
|
|
|
|
|
|
<div class="co-alert co-alert-warning" ng-if="!takeOwnershipInfo.is_org">
|
|
|
|
Note: This will convert the user namespace into an organization. <strong>The user will no longer be able to login to this account.</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
<!-- Modal message dialog -->
|
2015-01-26 18:46:57 +00:00
|
|
|
<div class="co-dialog modal fade" id="confirmDeleteUserModal">
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Delete User?</h4>
|
2014-12-23 19:25:04 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
This operation <strong>cannot be undone</strong> and will <strong>delete any repositories owned by the user</strong>.
|
|
|
|
</div>
|
|
|
|
Are you <strong>sure</strong> you want to delete user <strong>{{ userToDelete.username }}</strong>?
|
2014-12-23 19:25:04 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="deleteUser(userToDelete)">Delete User</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
2014-12-23 19:25:04 +00:00
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
2015-01-26 18:46:57 +00:00
|
|
|
<div class="co-dialog modal fade" id="createUserModal">
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Create New User</h4>
|
2014-12-23 19:25:04 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<form name="createUserForm" ng-submit="createUser()">
|
|
|
|
<div class="modal-body" ng-show="createdUser">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>E-mail address</th>
|
|
|
|
<th>Temporary Password</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr class="user-row">
|
|
|
|
<td>{{ createdUser.username }}</td>
|
|
|
|
<td>{{ createdUser.email }}</td>
|
|
|
|
<td>{{ createdUser.password }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" ng-show="creatingUser">
|
2015-01-23 22:19:15 +00:00
|
|
|
<div class="cor-loader"></div>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body" ng-show="!creatingUser && !createdUser">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Username</label>
|
|
|
|
<input class="form-control" type="text" ng-model="newUser.username" ng-pattern="/^[a-z0-9_]{4,30}$/" required>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Email address</label>
|
|
|
|
<input class="form-control" type="email" ng-model="newUser.email" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer" ng-show="createdUser">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer" ng-show="!creatingUser && !createdUser">
|
|
|
|
<button class="btn btn-primary" type="submit" ng-disabled="!createUserForm.$valid">
|
|
|
|
Create User
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
2015-01-26 18:46:57 +00:00
|
|
|
<div class="co-dialog modal fade" id="restartingContainerModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title">Container Currently Restarting</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" style="padding: 20px;">
|
|
|
|
<i class="fa fa-lg fa-refresh" style="margin-right: 10px;"></i>
|
|
|
|
<span class="registry-name"></span> is currently being restarted.
|
|
|
|
<br><br>
|
|
|
|
This can take several minutes. If the container does not restart on its own,
|
|
|
|
please reexecute the <code>docker run</code> command.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer working">
|
|
|
|
<span class="cor-loader-inline"></span> Waiting for container to restart...
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="co-dialog modal fade" id="changePasswordModal">
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Change User Password</h4>
|
2014-12-23 19:25:04 +00:00
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
The user will no longer be able to access the registry with their current password
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form class="form-change" id="changePasswordForm" name="changePasswordForm" data-trigger="manual">
|
|
|
|
<input type="password" class="form-control" placeholder="User's new password" ng-model="userToChange.password" required ng-pattern="/^.{8,}$/">
|
|
|
|
<input type="password" class="form-control" placeholder="Verify the new password" ng-model="userToChange.repeatPassword"
|
|
|
|
match="userToChange.password" required ng-pattern="/^.{8,}$/">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="changeUserPassword(userToChange)"
|
|
|
|
ng-disabled="changePasswordForm.$invalid">Change User Password</button>
|
2014-12-23 19:25:04 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
2015-01-04 19:38:41 +00:00
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
2015-05-11 18:38:10 +00:00
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="co-dialog modal fade" id="changeEmailModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">Change User E-mail Address</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-change" id="changeEmailForm" name="changeEmailForm" data-trigger="manual">
|
|
|
|
<input type="email" class="form-control" placeholder="User's new email" ng-model="userToChange.newemail" required>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="changeUserEmail(userToChange)"
|
|
|
|
ng-disabled="changeEmailForm.$invalid">Change User E-mail</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
2015-01-04 19:38:41 +00:00
|
|
|
</div> <!-- /page-content -->
|
|
|
|
</div>
|