feat: add scope filtering for personal documents in configuration and API

This commit is contained in:
estifanos
2026-08-28 09:56:04 +00:00
parent 3d5c6531c3
commit 19ef4215e0
7 changed files with 278 additions and 83 deletions

View File

@@ -1354,6 +1354,12 @@ export const am: Translations = {
requiresValidity: "የቀን ገደብ ያስፈልጋል",
allowMultiple: "ብዙ ስቀላዎችን ፍቀድ",
multiple: "ብዙ",
scope: "የሚመለከተው",
scopeAll: "ሁሉም ፈቃዶች",
scopeSelected: "የተመረጡ የፈቃድ አይነቶች",
scopePlaceholder: "የፈቃድ አይነቶችን ይምረጡ",
scopeHelp: "ከእነዚህ አንዱን የሥራ ዘርፍ አድርገው ያሳወቁ አመልካቾች ብቻ ይጠየቃሉ።",
scopeRequired: "ቢያንስ አንድ የፈቃድ አይነት ይምረጡ",
maxFiles: "የሚፈቀዱ ፋይሎች",
maxFilesHelp: "ገደብ ከሌለ ባዶ ይተዉት። ፊትና ጀርባ ላለው ሰነድ 2 ይጠቀሙ።",
maxFilesUnlimited: "ገደብ የለም",
@@ -1361,9 +1367,9 @@ export const am: Translations = {
when: "መቼ",
},
personal: {
title: "ለሁሉም ፈቃዶች የሚያስፈልጉ ሰነዶች",
title: "የግል ሰነዶች",
subtitle:
"አመልካቹ በእያንዳንዱ ማመልከቻ ላይ ከመስቀል ይልቅ በ\u2018ሰነዶቼ\u2019 ውስጥ አንድ ጊዜ የሚያስቀምጣቸው የማንነትና የትምህርት ሰነዶች።",
"አመልካቹ በእያንዳንዱ ማመልከቻ ላይ ከመስቀል ይልቅ በ\u2018ሰነዶቼ\u2019 ውስጥ አንድ ጊዜ የሚያስቀምጣቸው የማንነትና የትምህርት ሰነዶች። ለተወሰኑ የፈቃድ አይነቶች ከወሰኑት፣ እነዚያን የሥራ ዘርፍ ያሳወቁ አመልካቾች ብቻ ይጠየቃሉ።",
add: "የግል ሰነድ ጨምር",
empty: "እስካሁን የተዋቀረ የግል ሰነድ የለም።",
fileCount_one: "{{count}} ፋይል",

View File

@@ -1359,6 +1359,13 @@ export const en = {
requiresValidity: 'Requires validity dates',
allowMultiple: 'Allow multiple uploads',
multiple: 'multiple',
scope: 'Applies to',
scopeAll: 'All licences',
scopeSelected: 'Selected licence types',
scopePlaceholder: 'Choose licence types',
scopeHelp:
'Only applicants who declared one of these as a mode of operation are asked for it.',
scopeRequired: 'Choose at least one licence type',
maxFiles: 'Files accepted',
maxFilesHelp: 'Leave empty for no limit. Use 2 for a document with a front and a back.',
maxFilesUnlimited: 'No limit',
@@ -1366,9 +1373,9 @@ export const en = {
when: 'when',
},
personal: {
title: 'Documents required for every licence',
title: 'Personal documents',
subtitle:
'Identity and education documents an applicant keeps once, in My Documents, instead of uploading with every application.',
'Identity and education documents an applicant keeps once, in My Documents, instead of uploading with every application. Scope one to licence types and only applicants who declared those modes of operation are asked for it.',
add: 'Add personal document',
empty: 'No personal documents configured yet.',
fileCount_one: '{{count}} file',