members.tmpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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="{{.HomeLink}}">
  19. <img class="ui avatar image" src="{{.AvatarLink}}">
  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="{{.SignedUser.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" .}}