edit_org.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <page-header model="navModel"></page-header>
  2. <div class="page-container page-body">
  3. <h3 class="page-sub-heading">Edit Organization</h3>
  4. <form name="orgDetailsForm" class="gf-form-group">
  5. <div class="gf-form">
  6. <span class="gf-form-label width-10">Name</span>
  7. <input type="text" required ng-model="org.name" class="gf-form-input max-width-14" />
  8. </div>
  9. <div class="gf-form-button-row">
  10. <button type="submit" class="btn btn-primary" ng-click="update()" ng-show="!createMode">Update</button>
  11. </div>
  12. </form>
  13. <h3 class="page-heading">Organization Users</h3>
  14. <table class="filter-table">
  15. <tr>
  16. <th>Username</th>
  17. <th>Email</th>
  18. <th>Role</th>
  19. <th></th>
  20. </tr>
  21. <tr ng-repeat="orgUser in orgUsers">
  22. <td>{{orgUser.login}}</td>
  23. <td>{{orgUser.email}}</td>
  24. <td>
  25. <div class="gf-form">
  26. <span class="gf-form-select-wrapper">
  27. <select
  28. type="text"
  29. ng-model="orgUser.role"
  30. class="gf-form-input max-width-8"
  31. ng-options="f for f in ['Viewer', 'Editor', 'Admin']"
  32. ng-change="updateOrgUser(orgUser)"
  33. >
  34. </select>
  35. </span>
  36. </div>
  37. </td>
  38. <td style="width: 1%">
  39. <a ng-click="removeOrgUser(orgUser)" class="btn btn-danger btn-small">
  40. <icon name="'times'" style="margin-bottom: 0;"></icon>
  41. </a>
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. <footer />