grafana/public/app/features/profile/partials/profile.html

92 lines
2.7 KiB
HTML
Raw Normal View History

2016-02-20 17:33:58 -06:00
<navbar icon="icon-gf icon-gf-users" title="Profile" title-url="profile">
</navbar>
2014-09-18 05:04:03 -05:00
2016-01-15 08:51:30 -06:00
<div class="page-container">
<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>
<div class="gf-form">
<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" >
</div>
<div class="gf-form">
<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">
</div>
<div class="gf-form">
<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>
</div>
2016-04-01 19:34:30 -05:00
</form>
<form name="ctrl.prefsForm" class="gf-form-group">
<h3 class="page-heading">Preferences</h3>
<div class="gf-form">
<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>
</div>
2016-04-01 19:34:30 -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>
</div>
<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>
</div>
</form>
2016-04-01 19:34:30 -05:00
<h3 class="page-heading">Password</h3>
<div class="gf-form-group">
<a href="profile/password" class="btn btn-inverse">Change Password</a>
</div>
<h3 class="page-heading">Organizations</h3>
<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">
<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