2016-02-20 17:33:58 -06:00
|
|
|
<navbar icon="icon-gf icon-gf-users" title="Profile" title-url="profile">
|
2016-01-17 13:16:39 -06:00
|
|
|
</navbar>
|
2014-09-18 05:04:03 -05:00
|
|
|
|
2016-01-15 08:51:30 -06:00
|
|
|
<div class="page-container">
|
2016-02-14 06:41:42 -06:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>Profile</h1>
|
|
|
|
</div>
|
2014-09-20 05:14:03 -05:00
|
|
|
|
2016-04-01 19:34:30 -05:00
|
|
|
<form name="ctrl.userForm" class="gf-form-group">
|
|
|
|
<h3 class="page-heading">Information</h3>
|
2016-02-14 06:41:42 -06:00
|
|
|
|
2016-02-13 13:54:00 -06:00
|
|
|
<div class="gf-form">
|
2016-03-30 16:10:32 -05:00
|
|
|
<span class="gf-form-label width-9">Name</span>
|
2016-04-01 19:34:30 -05:00
|
|
|
<input class="gf-form-input max-width-21" type="text" required ng-model="ctrl.user.name" >
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
|
|
|
<div class="gf-form">
|
2016-03-30 16:10:32 -05:00
|
|
|
<span class="gf-form-label width-9">Email</span>
|
2016-04-01 19:34:30 -05:00
|
|
|
<input class="gf-form-input max-width-21" type="email" required ng-model="ctrl.user.email">
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
|
|
|
<div class="gf-form">
|
2016-03-30 16:10:32 -05:00
|
|
|
<span class="gf-form-label width-9">Username</span>
|
2016-04-01 19:34:30 -05:00
|
|
|
<input class="gf-form-input max-width-21" type="text" required ng-model="ctrl.user.login">
|
|
|
|
</div>
|
|
|
|
<div class="gf-form-button-row">
|
|
|
|
<button type="submit" class="btn btn-success" ng-click="ctrl.update()">Update</button>
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
2016-04-01 19:34:30 -05:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<form name="ctrl.prefsForm" class="gf-form-group">
|
|
|
|
<h3 class="page-heading">Preferences</h3>
|
|
|
|
|
2016-02-13 13:54:00 -06:00
|
|
|
<div class="gf-form">
|
2016-03-30 16:10:32 -05:00
|
|
|
<span class="gf-form-label width-9">UI Theme</span>
|
2016-04-01 19:34:30 -05:00
|
|
|
<div class="gf-form-select-wrapper max-width-20">
|
|
|
|
<select class="gf-form-input" ng-model="ctrl.prefs.theme" ng-options="f.value as f.text for f in ctrl.themes"></select>
|
|
|
|
</div>
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
2016-04-01 19:34:30 -05:00
|
|
|
|
2016-03-30 16:10:32 -05:00
|
|
|
<div class="gf-form">
|
|
|
|
<span class="gf-form-label width-9">Home Dashboard</span>
|
2016-04-01 19:34:30 -05:00
|
|
|
<dashboard-selector
|
|
|
|
class="gf-form-select-wrapper max-width-20"
|
|
|
|
model="ctrl.prefs.homeDashboardId">
|
|
|
|
</dashboard-selector>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="gf-form">
|
|
|
|
<label class="gf-form-label width-9">Timezone</label>
|
|
|
|
<div class="gf-form-select-wrapper max-width-20">
|
|
|
|
<select class="gf-form-input" ng-model="ctrl.prefs.timezone" ng-options="f.value as f.text for f in ctrl.timezones"></select>
|
|
|
|
</div>
|
2016-03-30 16:10:32 -05:00
|
|
|
</div>
|
2016-02-13 13:54:00 -06:00
|
|
|
|
|
|
|
<div class="gf-form-button-row">
|
2016-04-01 19:34:30 -05:00
|
|
|
<button type="submit" class="btn btn-success" ng-click="ctrl.updatePrefs()">Update</button>
|
2016-02-13 13:54:00 -06:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2016-04-01 19:34:30 -05:00
|
|
|
|
2016-02-18 05:16:47 -06:00
|
|
|
<h3 class="page-heading">Password</h3>
|
2016-02-14 06:41:42 -06:00
|
|
|
<div class="gf-form-group">
|
|
|
|
<a href="profile/password" class="btn btn-inverse">Change Password</a>
|
|
|
|
</div>
|
2016-02-13 13:54:00 -06:00
|
|
|
|
2016-02-18 05:16:47 -06:00
|
|
|
<h3 class="page-heading">Organizations</h3>
|
2016-02-16 05:15:09 -06:00
|
|
|
<div class="gf-form-group">
|
|
|
|
<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>
|
|
|
|
<a ng-click="setUsingOrg(org)" class="btn btn-inverse btn-mini" ng-show="org.orgId !== contextSrv.user.orgId">
|
|
|
|
Select
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-09-18 05:04:03 -05:00
|
|
|
|