diff --git a/src/assets/i18n/de/translation.json b/src/assets/i18n/de/translation.json index 0b5f860..eb16324 100644 --- a/src/assets/i18n/de/translation.json +++ b/src/assets/i18n/de/translation.json @@ -122,5 +122,6 @@ "user-conflict-error": "Der Benutzername ist bereits vergeben!", "group-conflict-error": "Der Gruppenname ist bereits vergeben!", "additional-info": "Zusätzliche Informationen", - "additional-info-tooltip": "Hier kann man zum Beispiel eine Personalausweisnummer eintragen. Die Daten werden auf dem Testbeleg ausgegeben." + "additional-info-tooltip": "Hier kann man zum Beispiel eine Personalausweisnummer eintragen. Die Daten werden auf dem Testbeleg ausgegeben.", + "searchPortalConsent": "Im Schnelltestsuch- portal anzeigen" } \ No newline at end of file diff --git a/src/assets/i18n/en/translation.json b/src/assets/i18n/en/translation.json index 1caac12..453694f 100644 --- a/src/assets/i18n/en/translation.json +++ b/src/assets/i18n/en/translation.json @@ -107,5 +107,6 @@ "for-counter": "für patient data acquisition", "user-conflict-error": "Username is already in use!", "additional-info": "Additional Information", - "additional-info-tooltip": "E.G. for ID-Card No." + "additional-info-tooltip": "E.G. for ID-Card No.", + "searchPortalConsent": "Show in quick test search portal" } \ No newline at end of file diff --git a/src/components/modals/group-modal.component.tsx b/src/components/modals/group-modal.component.tsx index 8850b23..f947b4a 100644 --- a/src/components/modals/group-modal.component.tsx +++ b/src/components/modals/group-modal.component.tsx @@ -24,7 +24,7 @@ import { Button, Modal, Form, Col, Row, Spinner, Fade, Container } from 'react-b import '../../i18n'; import { useTranslation } from 'react-i18next'; -import { FormGroupTextarea, FormGroupInput, FormGroupSelect } from '../modules/form-group.component'; +import { FormGroupTextarea, FormGroupInput, FormGroupSelect, FormGroupPermissionCkb } from '../modules/form-group.component'; import { IGroupDetails, IGroupNode, IGroup } from '../../misc/user'; import { useGetGroupDetails } from '../../api'; import CwaSpinner from '../spinner/spinner.component'; @@ -34,6 +34,7 @@ const emptyGroup: IGroupDetails = { pocId: '', name: '', pocDetails: '', + searchPortalConsent: false, parentGroup: '' } @@ -231,6 +232,8 @@ const GroupModal = (props: any) => { InvalidText={t('translation:group-conflict-error')} /> + {/*
*/} + < FormGroupTextarea controlId='formAdressData' title={t('translation:address-testcenter')} placeholder={t('translation:address-testcenter-placeholder')} value={data} required @@ -239,6 +242,13 @@ const GroupModal = (props: any) => { maxLength={300} /> + updateGroupProp('searchPortalConsent', evt.currentTarget.checked)} + type='checkbox' + checked={group.searchPortalConsent} + /> + {!(group && group.pocId) ? <> : <> diff --git a/src/components/modules/form-group.component.tsx b/src/components/modules/form-group.component.tsx index 5bb0ee5..8d3c59c 100644 --- a/src/components/modules/form-group.component.tsx +++ b/src/components/modules/form-group.component.tsx @@ -146,7 +146,7 @@ export const FormGroupConsentCkb = (props: any) => { export const FormGroupPermissionCkb = (props: any) => { return (!props ? <> : - + {props.title + (props.required ? '*' : '')} diff --git a/src/misc/user.tsx b/src/misc/user.tsx index b72bc5c..1bdd26a 100644 --- a/src/misc/user.tsx +++ b/src/misc/user.tsx @@ -55,6 +55,7 @@ export interface IGroupDetails { name: string, pocDetails: string, pocId: string, + searchPortalConsent: boolean, parentGroup?: string, }