This commit is contained in:
pradeepkumar
2026-01-24 21:36:36 +05:30
parent 35e027c917
commit 5ce7934289
2 changed files with 23 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ export default function ProfileSectionsPage() {
icon: '',
isActive: true,
isGlobal: false,
isRepeatable: false,
sortOrder: 0,
});
@@ -65,6 +66,7 @@ export default function ProfileSectionsPage() {
icon: '',
isActive: true,
isGlobal: false,
isRepeatable: false,
sortOrder: 0,
});
setModalError('');
@@ -79,6 +81,7 @@ export default function ProfileSectionsPage() {
icon: section.icon || '',
isActive: section.isActive,
isGlobal: section.isGlobal,
isRepeatable: section.isRepeatable || false,
sortOrder: section.sortOrder,
});
setModalError('');
@@ -306,6 +309,11 @@ export default function ProfileSectionsPage() {
>
{section.isGlobal ? 'Global' : 'Specific'}
</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>
</td>
<td className="px-6 py-4 whitespace-nowrap">
@@ -447,6 +455,18 @@ export default function ProfileSectionsPage() {
</label>
</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 className="px-6 py-4 border-t border-gray-200 flex justify-end space-x-3">
<button

View File

@@ -12,6 +12,7 @@ export interface ProfileSection {
isActive: boolean;
isGlobal: boolean;
isSystem: boolean;
isRepeatable: boolean;
createdAt: string;
updatedAt: string;
fields?: ProfileField[];
@@ -44,6 +45,7 @@ export interface CreateSectionDto {
sortOrder?: number;
isActive?: boolean;
isGlobal?: boolean;
isRepeatable?: boolean;
}
export interface UpdateSectionDto {
@@ -53,6 +55,7 @@ export interface UpdateSectionDto {
sortOrder?: number;
isActive?: boolean;
isGlobal?: boolean;
isRepeatable?: boolean;
}
export interface AssignSectionDto {