profile.html 1.8 KB

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