DEVELOPMENT ENVIRONMENT

~liljamo/felu

ref: d553f6e53a37ee36651f3190085c779f90849d35 felu/components/manageadmin.templ -rw-r--r-- 738 bytes
d553f6e5Jonni Liljamo feat: add a templ script 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package components

templ ManageAdmin() {
	@ManageBase("ManageAdmin") {
		<div>
			something something admin page
			<br/>probs have like stats and that kinda stuff here
		</div>
		<div class="flex flex-col">
			<a class="border p-2" href="/manage/admin/users">Users</a>
			<a class="border p-2" href="/manage/admin/domains">Domains</a>
		</div>
	}
}

templ ManageAdminUsers() {
	@ManageBase("ManageAdmin") {
		<div>
			list of users here, with also the ability to add new users
		</div>
		<div hx-get="/manage/admin/partials/users_list" hx-trigger="load" hx-target="this">
		</div>
	}
}

templ ManageAdminDomains() {
	@ManageBase("ManageAdmin") {
		<div>
			list of all domains on the instance, with owner details and such
		</div>
	}
}