You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.0 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. {{template "org/base/header" .}}
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="team-members-list" class="container clear">
  6. {{template "ng/base/alert" .}}
  7. {{template "org/team/sidebar" .}}
  8. <div class="grid-2-3 left">
  9. <div class="setting-content">
  10. <div class="panel panel-radius">
  11. <div class="panel-header">
  12. {{.i18n.Tr "org.teams.members"}}
  13. </div>
  14. <ul class="panel-body setting-list" id="team-members-list">
  15. {{if .IsOrganizationOwner}}
  16. <li class="search">
  17. <form class="form form-align" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/add" id="repo-collab-form">
  18. {{.CsrfTokenHtml}}
  19. <input type="hidden" name="uid" value="{{.SignedUser.Id}}">
  20. <input class="ipt ipt-large ipt-radius" id="org-team-members-add" name="uname" autocomplete="off" required />
  21. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "org.teams.add_team_member"}}</button>
  22. <div class="repo-user-list-block">
  23. <ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="org-team-members-list"></ul>
  24. </div>
  25. </form>
  26. </li>
  27. {{end}}
  28. {{range .Team.Members}}
  29. <li class="collab">
  30. {{if $.IsOrganizationOwner}}
  31. <a class="btn btn-small btn-red btn-radius right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
  32. {{end}}
  33. <a class="member" href="{{AppSubUrl}}/{{.Name}}">
  34. <img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}">
  35. <strong>{{.FullName}}</strong> ({{.Name}})
  36. </a>
  37. </li>
  38. {{end}}
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "ng/base/footer" .}}