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.

79 lines
3.7 KiB

  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body-nav" class="org-nav org-nav-auto">
  4. <div class="container clearfix">
  5. <div id="org-nav-wrapper">
  6. <ul class="nav nav-pills pull-right">
  7. <li><a href="/org/{{.Org.Name}}/members"><i class="fa fa-users"></i>Members
  8. <span class="label label-default">{{.Org.NumMembers}}</span></a>
  9. </li>
  10. <li class="active"><a href="/org/{{.Org.Name}}/teams"><i class="fa fa-tags"></i>Teams
  11. <span class="label label-default">{{.Org.NumTeams}}</span></a>
  12. </li>
  13. </ul>
  14. <img class="pull-left org-small-logo" src="{{.Org.AvatarLink}}?s=140" alt="" width="60"/>
  15. <div id="org-nav-info">
  16. <h2 class="org-name">{{.Org.FullName}}</h2>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div id="body" class="container">
  22. <div id="org">
  23. <form action="/org/{{.Org.Name}}/teams/new" method="post" id="org-teams-create" class="form-horizontal card">
  24. {{.CsrfTokenHtml}}
  25. <h3>Create new team</h3>
  26. {{template "base/alert" .}}
  27. <div class="form-group{{if .Err_TeamName}} has-error has-feedback{{end}}">
  28. <label class="col-md-2 control-label">Team Name<strong class="text-danger">*</strong></label>
  29. <div class="col-md-8">
  30. <input name="name" type="text" class="form-control" placeholder="Type your team name" value="{{.name}}" required="required">
  31. <span class="help-block">You'll use this name to mention this team in conversations.</span>
  32. </div>
  33. </div>
  34. <div class="form-group{{if .Err_Description}} has-error has-feedback{{end}}">
  35. <label class="col-md-2 control-label">Description</label>
  36. <div class="col-md-8">
  37. <input name="desc" type="text" class="form-control" placeholder="Type your team description (optional)" value="{{.desc}}">
  38. </div>
  39. </div>
  40. <div class="form-group{{if .Err_Permission}} has-error has-feedback{{end}}">
  41. <label class="col-md-2 control-label">Permission</label>
  42. <div class="col-md-8">
  43. <div class="radio">
  44. <label>
  45. <input type="radio" name="permission" value="read" checked="">
  46. <strong>Read Access</strong>
  47. </label>
  48. <p>This team will be able to view and clone its repositories.</p>
  49. </div>
  50. <div class="radio">
  51. <label>
  52. <input type="radio" name="permission" value="write">
  53. <strong>Write Access</strong>
  54. </label>
  55. <p>This team will be able to read its repositories, as well as push to them.</p>
  56. </div>
  57. <div class="radio">
  58. <label>
  59. <input type="radio" name="permission" value="admin">
  60. <strong>Admin Access</strong>
  61. </label>
  62. <p>This team will be able to push/pull to its repositories, as well as add other collaborators to them.</p>
  63. </div>
  64. </div>
  65. </div>
  66. <hr/>
  67. <div class="form-group">
  68. <label class="col-md-2">&nbsp;</label>
  69. <div class="col-md-8">
  70. <button class="btn btn-primary">Create team</button>
  71. </div>
  72. </div>
  73. </form>
  74. </div>
  75. </div>
  76. {{template "base/footer" .}}