|
@@ -6,35 +6,57 @@
|
|
|
<h1>Profile</h1>
|
|
<h1>Profile</h1>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <form name="userForm" class="gf-form-group">
|
|
|
|
|
- <h3 class="page-heading">Preferences</h3>
|
|
|
|
|
|
|
+ <form name="ctrl.userForm" class="gf-form-group">
|
|
|
|
|
+ <h3 class="page-heading">Information</h3>
|
|
|
|
|
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-9">Name</span>
|
|
<span class="gf-form-label width-9">Name</span>
|
|
|
- <input class="gf-form-input max-width-21" type="text" required ng-model="user.name" >
|
|
|
|
|
|
|
+ <input class="gf-form-input max-width-21" type="text" required ng-model="ctrl.user.name" >
|
|
|
</div>
|
|
</div>
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-9">Email</span>
|
|
<span class="gf-form-label width-9">Email</span>
|
|
|
- <input class="gf-form-input max-width-21" type="email" required ng-model="user.email">
|
|
|
|
|
|
|
+ <input class="gf-form-input max-width-21" type="email" required ng-model="ctrl.user.email">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-9">Username</span>
|
|
<span class="gf-form-label width-9">Username</span>
|
|
|
- <input class="gf-form-input max-width-21" type="text" required ng-model="user.login">
|
|
|
|
|
|
|
+ <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>
|
|
</div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+
|
|
|
|
|
+ <form name="ctrl.prefsForm" class="gf-form-group">
|
|
|
|
|
+ <h3 class="page-heading">Preferences</h3>
|
|
|
|
|
+
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-9">UI Theme</span>
|
|
<span class="gf-form-label width-9">UI Theme</span>
|
|
|
- <select class="gf-form-input gf-size-auto" ng-model="user.theme" ng-options="f for f in ['dark', 'light']"></select>
|
|
|
|
|
|
|
+ <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>
|
|
</div>
|
|
|
|
|
+
|
|
|
<div class="gf-form">
|
|
<div class="gf-form">
|
|
|
<span class="gf-form-label width-9">Home Dashboard</span>
|
|
<span class="gf-form-label width-9">Home Dashboard</span>
|
|
|
- <dashboard-selector model="user.homeDashboardId"></dashboard-selector>
|
|
|
|
|
|
|
+ <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>
|
|
|
|
|
|
|
|
<div class="gf-form-button-row">
|
|
<div class="gf-form-button-row">
|
|
|
- <button type="submit" class="btn btn-success" ng-click="update()">Update</button>
|
|
|
|
|
|
|
+ <button type="submit" class="btn btn-success" ng-click="ctrl.updatePrefs()">Update</button>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<h3 class="page-heading">Password</h3>
|
|
<h3 class="page-heading">Password</h3>
|
|
|
<div class="gf-form-group">
|
|
<div class="gf-form-group">
|
|
|
<a href="profile/password" class="btn btn-inverse">Change Password</a>
|
|
<a href="profile/password" class="btn btn-inverse">Change Password</a>
|
|
@@ -51,7 +73,7 @@
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
- <tr ng-repeat="org in orgs">
|
|
|
|
|
|
|
+ <tr ng-repeat="org in ctrl.orgs">
|
|
|
<td>{{org.name}}</td>
|
|
<td>{{org.name}}</td>
|
|
|
<td>{{org.role}}</td>
|
|
<td>{{org.role}}</td>
|
|
|
<td class="text-right">
|
|
<td class="text-right">
|