improved table
This commit is contained in:
parent
45e929138b
commit
4f01a74602
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
.venv
|
.venv
|
||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
data/db.sqlite
BIN
data/db.sqlite
Binary file not shown.
@ -34,3 +34,7 @@ main {
|
|||||||
.boxed {
|
.boxed {
|
||||||
@apply space-y-2 bg-blue-200 p-4 rounded-2xl shadow-lg;
|
@apply space-y-2 bg-blue-200 p-4 rounded-2xl shadow-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table td {
|
||||||
|
@apply p-1;
|
||||||
|
}
|
||||||
|
|||||||
@ -38,12 +38,15 @@ const onNewUserCreation = async () => {
|
|||||||
<template v-if="primaryUser.currentUser.value.role === 'admin'">
|
<template v-if="primaryUser.currentUser.value.role === 'admin'">
|
||||||
<div class="boxed">
|
<div class="boxed">
|
||||||
<h3>Users</h3>
|
<h3>Users</h3>
|
||||||
<table>
|
<table class="table-auto">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="font-bold">Username</th>
|
<th class="font-bold">Username</th>
|
||||||
<th class="font-bold">Role</th>
|
<th class="font-bold">Role</th>
|
||||||
<th class="font-bold">Actions</th>
|
<th class="font-bold">Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<tr v-for="user in primaryUser.allUsers.value" :key="user.user">
|
<tr v-for="user in primaryUser.allUsers.value" :key="user.user">
|
||||||
<td>{{ user.user }}</td>
|
<td>{{ user.user }}</td>
|
||||||
<td>{{ user.role }}</td>
|
<td>{{ user.role }}</td>
|
||||||
@ -60,6 +63,7 @@ const onNewUserCreation = async () => {
|
|||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<UserInfo :type="userDeletionMsg.type as any" v-if="userDeletionMsg.message">
|
<UserInfo :type="userDeletionMsg.type as any" v-if="userDeletionMsg.message">
|
||||||
<template #default>
|
<template #default>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user