2017-11-30 10:28:24 -06:00
|
|
|
<page-header model="ctrl.navModel"></page-header>
|
2014-09-20 05:14:03 -05:00
|
|
|
|
2017-11-30 04:31:38 -06:00
|
|
|
<div class="page-container page-body">
|
2017-11-30 10:28:24 -06:00
|
|
|
<h3 class="page-sub-heading">User Profile</h3>
|
|
|
|
|
2016-04-01 19:34:30 -05:00
|
|
|
<form name="ctrl.userForm" class="gf-form-group">
|
2016-02-14 06:41:42 -06:00
|
|
|
|
2017-03-21 08:34:48 -05:00
|
|
|
<div class="gf-form max-width-30">
|
|
|
|
<span class="gf-form-label width-8">Name</span>
|
|
|
|
<input class="gf-form-input max-width-22" type="text" required ng-model="ctrl.user.name" >
|
2016-04-01 19:34:30 -05:00
|
|
|
</div>
|
2017-03-21 08:34:48 -05:00
|
|
|
<div class="gf-form max-width-30">
|
|
|
|
<span class="gf-form-label width-8">Email</span>
|
|
|
|
<input class="gf-form-input max-width-22" type="email" ng-readonly="ctrl.readonlyLoginFields" required ng-model="ctrl.user.email">
|
|
|
|
<i ng-if="ctrl.readonlyLoginFields" class="fa fa-lock gf-form-icon--right-absolute" bs-tooltip="'Login Details Locked - managed in another system.'"></i>
|
|
|
|
</div>
|
|
|
|
<div class="gf-form max-width-30">
|
|
|
|
<span class="gf-form-label width-8">Username</span>
|
|
|
|
<input class="gf-form-input max-width-22" type="text" ng-readonly="ctrl.readonlyLoginFields" required ng-model="ctrl.user.login">
|
|
|
|
<i ng-if="ctrl.readonlyLoginFields" class="fa fa-lock gf-form-icon--right-absolute" bs-tooltip="'Login Details Locked - managed in another system.'"></i>
|
|
|
|
</div>
|
2016-04-01 19:34:30 -05:00
|
|
|
<div class="gf-form-button-row">
|
2017-08-20 14:16:40 -05:00
|
|
|
<button type="submit" class="btn btn-success" ng-click="ctrl.update()">Save</button>
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
2016-04-01 19:34:30 -05:00
|
|
|
</form>
|
|
|
|
|
2016-04-02 15:54:06 -05:00
|
|
|
<prefs-control mode="user"></prefs-control>
|
2016-04-01 19:34:30 -05:00
|
|
|
|
2016-09-08 02:03:29 -05:00
|
|
|
<h3 class="page-heading" ng-show="ctrl.showOrgsList">Organizations</h3>
|
|
|
|
<div class="gf-form-group" ng-show="ctrl.showOrgsList">
|
2016-02-16 05:15:09 -06:00
|
|
|
<table class="filter-table form-inline">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Role</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-04-01 19:34:30 -05:00
|
|
|
<tr ng-repeat="org in ctrl.orgs">
|
2016-02-16 05:15:09 -06:00
|
|
|
<td>{{org.name}}</td>
|
|
|
|
<td>{{org.role}}</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<span class="btn btn-primary btn-mini" ng-show="org.orgId === contextSrv.user.orgId">
|
|
|
|
Current
|
|
|
|
</span>
|
2016-06-08 17:43:38 -05:00
|
|
|
<a ng-click="ctrl.setUsingOrg(org)" class="btn btn-inverse btn-mini" ng-show="org.orgId !== contextSrv.user.orgId">
|
2016-02-16 05:15:09 -06:00
|
|
|
Select
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-09-18 05:04:03 -05:00
|
|
|
|