-
+
{item.name.charAt(0).toUpperCase()}
{item.name}
@@ -470,7 +531,7 @@ function UserManagementPageContent() {
{item.email}
|
-
+
{item.role}
|
@@ -480,11 +541,34 @@ function UserManagementPageContent() {
{item.phone || "—"}
|
+
+
+ {item.approval_status || "Approved"}
+
+ |
{new Date(item.created_at).toLocaleDateString(undefined, { year: "numeric", month: "short", day: "numeric" })}
|
+ {item.approval_status !== "Approved" && (
+
+ )}
+ {item.approval_status !== "Rejected" && (
+
+ )}
@@ -593,7 +677,7 @@ function UserManagementPageContent() {
+ {/* Approval Status (Edit mode only) */}
+ {editModalOpen && (
+
+
+
+
+ )}
+
{/* Faculty / Dept */}
@@ -609,7 +709,7 @@ function UserManagementPageContent() {
value={formData.department}
onChange={(e) => setFormData({ ...formData, department: e.target.value })}
required
- className="block w-full px-4 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-xl text-xs font-bold text-foreground focus:outline-none cursor-pointer"
+ className="block w-full px-4 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-none text-xs font-bold text-foreground focus:outline-none cursor-pointer"
>
{departments.map((d) => (
@@ -626,7 +726,7 @@ function UserManagementPageContent() {
value={formData.phone}
onChange={(e) => setFormData({ ...formData, phone: e.target.value })}
placeholder="+1234567890"
- className="block w-full px-4 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-xl text-xs font-bold text-foreground focus:outline-none"
+ className="block w-full px-4 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-none text-xs font-bold text-foreground focus:outline-none"
/>
@@ -642,7 +742,7 @@ function UserManagementPageContent() {
value={formData.password}
onChange={(e) => setFormData({ ...formData, password: e.target.value })}
placeholder={createModalOpen ? "Min 8 characters" : "Leave blank to keep unchanged"}
- className="block w-full pl-4 pr-11 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-xl text-xs font-bold text-foreground focus:outline-none"
+ className="block w-full pl-4 pr-11 py-2.5 bg-slate-50 dark:bg-slate-950/20 border border-slate-200 dark:border-border rounded-none text-xs font-bold text-foreground focus:outline-none"
/>
|