| 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"> |
| 10 | <h1>Groups Managment</h1> |
| 11 | <form action="/create-group" method="post"> |
| 12 | <label for="group-name">Group Name:</label> |
| 13 | <input type="text" id="group-name" name="group-name" required> |
| 14 | <label for="description">Group Description:</label> |
| 15 | <input type="text" id="description" name="description"> |
| 16 | <button type="submit">Create Group</button> |
| 17 | </form> |
| 18 | <h4>Owner</h4> |
| 19 | <table> |
| 20 | <tr> |
| 21 | <th>Name</th> |
| 22 | <th>Description</th> |
| 23 | </tr> |
| 24 | {{- range .OwnerGroups -}} |
| 25 | <tr> |
| 26 | <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td> |
| 27 | <td>{{ .Description }}</td> |
| 28 | </tr> |
| 29 | {{- end -}} |
| 30 | </table> |
| 31 | <h4>Member</h4> |
| 32 | <table> |
| 33 | <tr> |
| 34 | <th>Name</th> |
| 35 | <th>Description</th> |
| 36 | </tr> |
| 37 | {{- range .MembershipGroups -}} |
| 38 | <tr> |
| 39 | <td><a href="/group/{{ .Name }}">{{ .Name }}</a></td> |
| 40 | <td>{{ .Description }}</td> |
| 41 | </tr> |
| 42 | {{- end -}} |
| 43 | </table> |
| 44 | </body> |
| 45 | </html> |