memberships: owner groups
Change-Id: I7dd4110a288a4f7b59b2d6b755968b5e3a23d30c
diff --git a/core/auth/memberships/memberships-tmpl/group.html b/core/auth/memberships/memberships-tmpl/group.html
index 2f5c89a..46f833f 100644
--- a/core/auth/memberships/memberships-tmpl/group.html
+++ b/core/auth/memberships/memberships-tmpl/group.html
@@ -22,12 +22,22 @@
<form action="/group/{{ .GroupName }}/add-child-group" method="post">
<label for="child-group">Select Child Group:</label>
<select id="child-group" aria-label="Select" name="child-group" required>
- {{- range .AvailableGroups }}
- <option value="{{ . }}">{{ . }}</option>
+ {{- range .AllGroups }}
+ <option value="{{ .Name }}">{{ .Name }}</option>
{{- end }}
</select>
<button type="submit">Create Child Group</button>
</form>
+ <hr class="divider">
+ <form action="/group/{{ .GroupName }}/add-owner-group" method="post">
+ <label for="owner-group">Select Owner Group:</label>
+ <select id="owner-group" aria-label="Select" name="owner-group" required>
+ {{- range .AllGroups }}
+ <option value="{{ .Name }}">{{ .Name }}</option>
+ {{- end }}
+ </select>
+ <button type="submit">Add Owner Group</button>
+ </form>
<h4>Owners</h4>
<table>
<tr>
@@ -75,7 +85,7 @@
</tr>
{{- end }}
</table>
- <h3>Child Groups</h3>
+ <h4>Child Groups</h4>
<table>
<tr>
<th>Group Name</th>
@@ -94,6 +104,19 @@
</tr>
{{- end }}
</table>
+ <h4>Owner Groups</h4>
+ <table>
+ <tr>
+ <th>Group Name</th>
+ <th>Description</th>
+ </tr>
+ {{- range .OwnerGroups }}
+ <tr>
+ <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td>
+ <td>{{ .Description }}</td>
+ </tr>
+ {{- end }}
+ </table>
<dialog id="confirmation" close>
<article>
<h2>Confirm Your Action</h2>