blob: cd3cf5030f66e44a3829954ca8cf8b568fbdfe88 [file] [log] [blame]
DTabidze0d802592024-03-19 17:42:45 +04001<!DOCTYPE html>
2<html lang="en" data-theme="light">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Group Managment</title>
7 <link rel="stylesheet" href="/static/pico.2.0.6.min.css">
8</head>
9<body class="container">
DTabidze5d735e32024-03-26 16:01:06 +040010 <h1>User: {{ .CurrentUser }}</h1>
11 {{ if .LoggedInUserPage }}
DTabidze0d802592024-03-19 17:42:45 +040012 <form action="/create-group" method="post">
13 <label for="group-name">Group Name:</label>
14 <input type="text" id="group-name" name="group-name" required>
15 <label for="description">Group Description:</label>
16 <input type="text" id="description" name="description">
17 <button type="submit">Create Group</button>
18 </form>
DTabidze5d735e32024-03-26 16:01:06 +040019 {{ end }}
DTabidze0d802592024-03-19 17:42:45 +040020 <h4>Owner</h4>
21 <table>
22 <tr>
23 <th>Name</th>
24 <th>Description</th>
25 </tr>
26 {{- range .OwnerGroups -}}
27 <tr>
28 <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td>
29 <td>{{ .Description }}</td>
30 </tr>
31 {{- end -}}
32 </table>
33 <h4>Member</h4>
34 <table>
35 <tr>
36 <th>Name</th>
37 <th>Description</th>
38 </tr>
39 {{- range .MembershipGroups -}}
40 <tr>
41 <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td>
42 <td>{{ .Description }}</td>
43 </tr>
44 {{- end -}}
45 </table>
DTabidzec0b4d8f2024-03-22 17:25:10 +040046 <h4>Transitive Groups</h4>
47 <table>
48 <tr>
49 <th>Name</th>
50 <th>Description</th>
51 </tr>
52 {{- range .TransitiveGroups -}}
53 <tr>
54 <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td>
55 <td>{{ .Description }}</td>
56 </tr>
57 {{- end -}}
58 </table>
DTabidze0d802592024-03-19 17:42:45 +040059</body>
60</html>