| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 1 | <!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"> |
| DTabidze | 5d735e3 | 2024-03-26 16:01:06 +0400 | [diff] [blame^] | 10 | <h1>User: {{ .CurrentUser }}</h1> |
| 11 | {{ if .LoggedInUserPage }} |
| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 12 | <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> |
| DTabidze | 5d735e3 | 2024-03-26 16:01:06 +0400 | [diff] [blame^] | 19 | {{ end }} |
| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 20 | <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> |
| DTabidze | c0b4d8f | 2024-03-22 17:25:10 +0400 | [diff] [blame] | 46 | <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> |
| DTabidze | 0d80259 | 2024-03-19 17:42:45 +0400 | [diff] [blame] | 59 | </body> |
| 60 | </html> |