Ajoute un avertissement sur les champs de type Titre Identité
This commit is contained in:
parent
937b9c5b0e
commit
b1ab0c6ed2
2 changed files with 14 additions and 0 deletions
|
@ -161,6 +161,7 @@ export const TypeDeChampComponent = SortableElement<TypeDeChampProps>(
|
||||||
/>
|
/>
|
||||||
<TypeDeChampPieceJustificative
|
<TypeDeChampPieceJustificative
|
||||||
isVisible={isFile}
|
isVisible={isFile}
|
||||||
|
isTitreIdentite={isTitreIdentite}
|
||||||
directUploadUrl={state.directUploadUrl}
|
directUploadUrl={state.directUploadUrl}
|
||||||
filename={typeDeChamp.piece_justificative_template_filename}
|
filename={typeDeChamp.piece_justificative_template_filename}
|
||||||
handler={updateHandlers.piece_justificative_template}
|
handler={updateHandlers.piece_justificative_template}
|
||||||
|
|
|
@ -5,12 +5,14 @@ import type { Handler } from '../types';
|
||||||
|
|
||||||
export function TypeDeChampPieceJustificative({
|
export function TypeDeChampPieceJustificative({
|
||||||
isVisible,
|
isVisible,
|
||||||
|
isTitreIdentite,
|
||||||
url,
|
url,
|
||||||
filename,
|
filename,
|
||||||
handler,
|
handler,
|
||||||
directUploadUrl
|
directUploadUrl
|
||||||
}: {
|
}: {
|
||||||
isVisible: boolean;
|
isVisible: boolean;
|
||||||
|
isTitreIdentite: boolean;
|
||||||
url?: string;
|
url?: string;
|
||||||
filename?: string;
|
filename?: string;
|
||||||
handler: Handler<HTMLInputElement>;
|
handler: Handler<HTMLInputElement>;
|
||||||
|
@ -32,6 +34,17 @@ export function TypeDeChampPieceJustificative({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isTitreIdentite) {
|
||||||
|
return (
|
||||||
|
<div className="cell">
|
||||||
|
<p id={`${handler.id}-description`}>
|
||||||
|
Dans le cadre de la RGPD, le titre d'identité sera supprimé lors
|
||||||
|
de l'acceptation du dossier
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue