members.tmpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{template "base/head" .}}
  2. <div class="organization teams">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="ui grid">
  7. {{template "org/team/sidebar" .}}
  8. <div class="ui ten wide column">
  9. <div class="ui top attached header">
  10. {{.i18n.Tr "org.teams.members"}}
  11. </div>
  12. <div class="ui attached table segment members">
  13. {{range .Team.Members}}
  14. <div class="item">
  15. {{if $.IsOrganizationOwner}}
  16. <a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/remove?uid={{.ID}}">{{$.i18n.Tr "org.members.remove"}}</a>
  17. {{end}}
  18. <a href="{{.HomeURLPath}}">
  19. <img class="ui avatar image" src="{{.AvatarURLPath}}">
  20. {{.DisplayName}}
  21. </a>
  22. </div>
  23. {{end}}
  24. </div>
  25. {{if .IsOrganizationOwner}}
  26. <div class="ui bottom attached segment">
  27. <form class="ui form" id="add-member-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/add" method="post">
  28. {{.CSRFTokenHTML}}
  29. <input type="hidden" name="uid" value="{{.LoggedUser.ID}}">
  30. <div class="inline field ui left">
  31. <div id="search-user-box">
  32. <div class="ui input">
  33. <input class="prompt" name="uname" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" required>
  34. </div>
  35. <div class="ui segment results hide"></div>
  36. </div>
  37. </div>
  38. <button class="ui green button">{{.i18n.Tr "org.teams.add_team_member"}}</button>
  39. </form>
  40. </div>
  41. {{end}}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {{template "base/footer" .}}