profile.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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-7">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-7">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-7">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-7">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-button-row">
  26. <button type="submit" class="btn btn-success" ng-click="update()">Update</button>
  27. </div>
  28. </form>
  29. <h3 class="page-heading">Password</h3>
  30. <div class="gf-form-group">
  31. <a href="profile/password" class="btn btn-inverse">Change Password</a>
  32. </div>
  33. <h3 class="page-heading">Organizations</h3>
  34. <div class="gf-form-group">
  35. <table class="filter-table form-inline">
  36. <thead>
  37. <tr>
  38. <th>Name</th>
  39. <th>Role</th>
  40. <th></th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr ng-repeat="org in orgs">
  45. <td>{{org.name}}</td>
  46. <td>{{org.role}}</td>
  47. <td class="text-right">
  48. <span class="btn btn-primary btn-mini" ng-show="org.orgId === contextSrv.user.orgId">
  49. Current
  50. </span>
  51. <a ng-click="setUsingOrg(org)" class="btn btn-inverse btn-mini" ng-show="org.orgId !== contextSrv.user.orgId">
  52. Select
  53. </a>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>