fix
This commit is contained in:
@@ -34,6 +34,7 @@ export default function ProfileSectionsPage() {
|
|||||||
icon: '',
|
icon: '',
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
|
isRepeatable: false,
|
||||||
sortOrder: 0,
|
sortOrder: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ export default function ProfileSectionsPage() {
|
|||||||
icon: '',
|
icon: '',
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isGlobal: false,
|
isGlobal: false,
|
||||||
|
isRepeatable: false,
|
||||||
sortOrder: 0,
|
sortOrder: 0,
|
||||||
});
|
});
|
||||||
setModalError('');
|
setModalError('');
|
||||||
@@ -79,6 +81,7 @@ export default function ProfileSectionsPage() {
|
|||||||
icon: section.icon || '',
|
icon: section.icon || '',
|
||||||
isActive: section.isActive,
|
isActive: section.isActive,
|
||||||
isGlobal: section.isGlobal,
|
isGlobal: section.isGlobal,
|
||||||
|
isRepeatable: section.isRepeatable || false,
|
||||||
sortOrder: section.sortOrder,
|
sortOrder: section.sortOrder,
|
||||||
});
|
});
|
||||||
setModalError('');
|
setModalError('');
|
||||||
@@ -306,6 +309,11 @@ export default function ProfileSectionsPage() {
|
|||||||
>
|
>
|
||||||
{section.isGlobal ? 'Global' : 'Specific'}
|
{section.isGlobal ? 'Global' : 'Specific'}
|
||||||
</span>
|
</span>
|
||||||
|
{section.isRepeatable && (
|
||||||
|
<span className="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-orange-100 text-orange-800">
|
||||||
|
Repeatable
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-6 py-4 whitespace-nowrap">
|
<td className="px-6 py-4 whitespace-nowrap">
|
||||||
@@ -447,6 +455,18 @@ export default function ProfileSectionsPage() {
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex items-center">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
id="isRepeatable"
|
||||||
|
checked={formData.isRepeatable}
|
||||||
|
onChange={(e) => setFormData({ ...formData, isRepeatable: e.target.checked })}
|
||||||
|
className="rounded border-gray-300 text-orange-600 focus:ring-orange-500"
|
||||||
|
/>
|
||||||
|
<label htmlFor="isRepeatable" className="ml-2 text-sm text-gray-700">
|
||||||
|
Allow Multiple Entries (e.g., certifications, education)
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="px-6 py-4 border-t border-gray-200 flex justify-end space-x-3">
|
<div className="px-6 py-4 border-t border-gray-200 flex justify-end space-x-3">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export interface ProfileSection {
|
|||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
isGlobal: boolean;
|
isGlobal: boolean;
|
||||||
isSystem: boolean;
|
isSystem: boolean;
|
||||||
|
isRepeatable: boolean;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
fields?: ProfileField[];
|
fields?: ProfileField[];
|
||||||
@@ -44,6 +45,7 @@ export interface CreateSectionDto {
|
|||||||
sortOrder?: number;
|
sortOrder?: number;
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
isGlobal?: boolean;
|
isGlobal?: boolean;
|
||||||
|
isRepeatable?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateSectionDto {
|
export interface UpdateSectionDto {
|
||||||
@@ -53,6 +55,7 @@ export interface UpdateSectionDto {
|
|||||||
sortOrder?: number;
|
sortOrder?: number;
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
isGlobal?: boolean;
|
isGlobal?: boolean;
|
||||||
|
isRepeatable?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AssignSectionDto {
|
export interface AssignSectionDto {
|
||||||
|
|||||||
Reference in New Issue
Block a user