feat: add settings data upload and single-name user forms
Allow SuperAdmins to upload import JSON from settings, and update user UI for merged name, gender, and extended profile fields.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
<Column field="name" header="نام و نام خانوادگی دانشجو">
|
||||
<template #body="{ data }">
|
||||
<span class="font-bold text-color">{{ data.name }} {{ data.surname }}</span>
|
||||
<span class="font-bold text-color">{{ data.name }}</span>
|
||||
<span class="text-xs text-muted block">کد ملی: {{ toPersianDigits(data.nationalIdCode || '—') }}</span>
|
||||
</template>
|
||||
</Column>
|
||||
@@ -121,7 +121,8 @@ const fetchSessionAttendance = async () => {
|
||||
return {
|
||||
userId: user._id,
|
||||
name: user.name || '',
|
||||
surname: user.surname || '',
|
||||
name: user.name || '',
|
||||
gender: user.gender || null,
|
||||
nationalIdCode: user.nationalIdCode || '',
|
||||
status: existing?.status || 'present',
|
||||
note: existing?.note || ''
|
||||
|
||||
Reference in New Issue
Block a user