INTRANET / USER MANAGEMENT
-
USERS
+
+
USERS
+ {currentUser?.isAdmin && (
+
+ )}
+
{/* Filters */}
@@ -55,6 +132,87 @@ export default function IntranetUsers() {
+ {/* Create staff user modal */}
+ {showCreateForm && (
+
setShowCreateForm(false)}
+ >
+
e.stopPropagation()}
+ >
+
+ CREATE STAFF USER
+
+
+
+
+
+ setCreateUsername(e.target.value)}
+ style={{ fontSize: '0.85rem' }}
+ autoFocus
+ />
+
+
+
+ setCreateEmail(e.target.value)}
+ style={{ fontSize: '0.85rem' }}
+ />
+
+
+
+ setCreatePassword(e.target.value)}
+ style={{ fontSize: '0.85rem' }}
+ />
+
+
+
+
+
+
+
+ {createError && (
+
+ {createError}
+
+ )}
+
+
+
+
+
+
+
+ )}
+
{/* Confirm dialog */}
{confirmAction && (
{u.username} {isSelf && (you)}
- {u.isAdmin && [admin]}
|
{u.email} |
-
- {u.role}
-
+
|
{formatDate(u.createdAt)} |
0 |