profile.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <navbar icon="icon-gf icon-gf-users" title="Profile" title-url="profile">
  2. </navbar>
  3. <div class="page-container">
  4. <div class="page-header">
  5. <h1>Profile</h1>
  6. </div>
  7. <form name="userForm" class="gf-form-group">
  8. <h3 class="page-heading">Preferences</h3>
  9. <div class="gf-form">
  10. <span class="gf-form-label width-9">Name</span>
  11. <input class="gf-form-input max-width-21" type="text" required ng-model="user.name" >
  12. </div>
  13. <div class="gf-form">
  14. <span class="gf-form-label width-9">Email</span>
  15. <input class="gf-form-input max-width-21" type="email" required ng-model="user.email">
  16. </div>
  17. <div class="gf-form">
  18. <span class="gf-form-label width-9">Username</span>
  19. <input class="gf-form-input max-width-21" type="text" required ng-model="user.login">
  20. </div>
  21. <div class="gf-form">
  22. <span class="gf-form-label width-9">UI Theme</span>
  23. <select class="gf-form-input gf-size-auto" ng-model="user.theme" ng-options="f for f in ['dark', 'light']"></select>
  24. </div>
  25. <div class="gf-form">
  26. <span class="gf-form-label width-9">Home Dashboard</span>
  27. <dashboard-selector model="user.homeDashboardId"></dashboard-selector>
  28. </div>
  29. <div class="gf-form-button-row">
  30. <button type="submit" class="btn btn-success" ng-click="update()">Update</button>
  31. </div>
  32. </form>
  33. <h3 class="page-heading">Password</h3>
  34. <div class="gf-form-group">
  35. <a href="profile/password" class="btn btn-inverse">Change Password</a>
  36. </div>
  37. <h3 class="page-heading">Organizations</h3>
  38. <div class="gf-form-group">
  39. <table class="filter-table form-inline">
  40. <thead>
  41. <tr>
  42. <th>Name</th>
  43. <th>Role</th>
  44. <th></th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr ng-repeat="org in orgs">
  49. <td>{{org.name}}</td>
  50. <td>{{org.role}}</td>
  51. <td class="text-right">
  52. <span class="btn btn-primary btn-mini" ng-show="org.orgId === contextSrv.user.orgId">
  53. Current
  54. </span>
  55. <a ng-click="setUsingOrg(org)" class="btn btn-inverse btn-mini" ng-show="org.orgId !== contextSrv.user.orgId">
  56. Select
  57. </a>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>