{{ 'Forms.PoCoToSection.SectionTitle' | translate }}

{{ 'Forms.PoCoToSection.SectionParagraph' | translate }}

@let isCategoryFieldInvalid = poCoToFieldsGroup.controls.category.touched && poCoToFieldsGroup.controls.category.invalid;
@if (poCoToFieldsGroup.value.category) { }
@if (poCoToFieldsGroup.hasError('required', 'category')) { {{ 'Forms.PoCoToSection.CategorySelect.ValidatorRequired' | translate }} }
@if (poCoToFieldsGroup.value.category) {
@let isNameFieldInvalid = poCoToFieldsGroup.controls.name.touched && poCoToFieldsGroup.controls.name.invalid;
@if (poCoToFieldsGroup.value.name) { }
@if (poCoToFieldsGroup.hasError('required', 'name')) { {{ 'Forms.PoCoToSection.NameInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'name')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: poCoToFieldsGroup.getError('maxlength', 'name').requiredLength } }} }
@let isUrlFieldInvalid = poCoToFieldsGroup.controls.url.touched && poCoToFieldsGroup.controls.url.invalid;
@if (poCoToFieldsGroup.value.url) { }
@if (poCoToFieldsGroup.hasError('required', 'url')) { {{ 'Forms.PoCoToSection.ApplicationLinkInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'url')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: poCoToFieldsGroup.getError('maxlength', 'url').requiredLength } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'url')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
@if (poCoToFieldsGroup.value.category === PoCoToCategory.App) {
{{ 'Forms.PoCoToSection.ApplicationTypeCheckbox.Label' | translate }}
@if (poCoToFieldsGroup.value.mobileAppGroup.isMobileApp) {
@let isAndroidLinkFieldInvalid = poCoToFieldsGroup.controls.mobileAppGroup.controls.androidLink.touched && (poCoToFieldsGroup.controls.mobileAppGroup.controls.androidLink.invalid || poCoToFieldsGroup.hasError('requireOneValue', 'mobileAppGroup'));
@if (poCoToFieldsGroup.value.mobileAppGroup.androidLink) { }
@if (poCoToFieldsGroup.hasError('requireOneValue', 'mobileAppGroup')) { {{ 'Forms.PoCoToSection.ApplicationTypeAndroidInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'mobileAppGroup.androidLink')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate : { length: poCoToFieldsGroup.getError('maxlength', 'mobileAppGroup.androidLink') .requiredLength, } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'mobileAppGroup.androidLink')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
@let isAppleLinkFieldInvalid = poCoToFieldsGroup.controls.mobileAppGroup.controls.appleLink.touched && (poCoToFieldsGroup.controls.mobileAppGroup.controls.appleLink.invalid || poCoToFieldsGroup.hasError('requireOneValue', 'mobileAppGroup'));
@if (poCoToFieldsGroup.value.mobileAppGroup.appleLink) { }
@if (poCoToFieldsGroup.hasError('requireOneValue', 'mobileAppGroup')) { {{ 'Forms.PoCoToSection.ApplicationTypeIOSInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'mobileAppGroup.appleLink')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate : { length: poCoToFieldsGroup.getError('maxlength', 'mobileAppGroup.appleLink') .requiredLength, } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'mobileAppGroup.appleLink')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
}
@if (poCoToFieldsGroup.value.desktopAppGroup.isDesktopApp) {
@let isWindowsLinkFieldInvalid = poCoToFieldsGroup.controls.desktopAppGroup.controls.windowsLink.touched && (poCoToFieldsGroup.controls.desktopAppGroup.controls.windowsLink.invalid || poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup'));
@if (poCoToFieldsGroup.value.desktopAppGroup.windowsLink) { }
@if (poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup')) { {{ 'Forms.PoCoToSection.ApplicationTypeWindowsInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'desktopAppGroup.windowsLink')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate : { length: poCoToFieldsGroup.getError('maxlength', 'desktopAppGroup.windowsLink') .requiredLength, } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'desktopAppGroup.windowsLink')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
@let isLinuxLinkFieldInvalid = poCoToFieldsGroup.controls.desktopAppGroup.controls.linuxLink.touched && (poCoToFieldsGroup.controls.desktopAppGroup.controls.linuxLink.invalid || poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup'));
@if (poCoToFieldsGroup.value.desktopAppGroup.linuxLink) { }
@if (poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup')) { {{ 'Forms.PoCoToSection.ApplicationTypeLinuxInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'desktopAppGroup.linuxLink')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate : { length: poCoToFieldsGroup.getError('maxlength', 'desktopAppGroup.linuxLink') .requiredLength, } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'desktopAppGroup.linuxLink')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
@let isMacLinkFieldInvalid = poCoToFieldsGroup.controls.desktopAppGroup.controls.macLink.touched && (poCoToFieldsGroup.controls.desktopAppGroup.controls.macLink.invalid || poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup'));
@if (poCoToFieldsGroup.value.desktopAppGroup.macLink) { }
@if (poCoToFieldsGroup.hasError('requireOneValue', 'desktopAppGroup')) { {{ 'Forms.PoCoToSection.ApplicationTypeMacOSInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'desktopAppGroup.macLink')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate : { length: poCoToFieldsGroup.getError('maxlength', 'desktopAppGroup.macLink') .requiredLength, } }} } @else if (poCoToFieldsGroup.hasError('pattern', 'desktopAppGroup.macLink')) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
}
} @if ( poCoToFieldsGroup.value.category === PoCoToCategory.App || poCoToFieldsGroup.value.category === PoCoToCategory.Www ) {
@let isLicenseFieldInvalid = poCoToFieldsGroup.controls.licenseType.touched && poCoToFieldsGroup.controls.licenseType.invalid; {{ 'Forms.PoCoToSection.LicenseTypeRadio.Label' | translate }} ({{ 'Forms.General.RequiredHint' | translate }})
@if (poCoToFieldsGroup.hasError('required', 'licenseType')) { {{ 'Forms.PoCoToSection.LicenseTypeRadio.ValidatorRequired' | translate }} }
}
@let isDescriptionFieldInvalid = poCoToFieldsGroup.controls.description.touched && poCoToFieldsGroup.controls.description.invalid;
@if (poCoToFieldsGroup.value.description) { }
@if (!isDescriptionFieldInvalid) {
{{ 'Forms.PoCoToSection.DescriptionTextarea.Hint' | translate }}
}
@let lengthError = poCoToFieldsGroup.getError('maxlength', 'description'); @if (poCoToFieldsGroup.hasError('required', 'description')) { {{ 'Forms.PoCoToSection.DescriptionTextarea.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'description')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: lengthError.requiredLength } }} }
@let isKeywordsFieldInvalid = poCoToFieldsGroup.controls.keywords.touched && poCoToFieldsGroup.controls.keywords.invalid;
@if (poCoToFieldsGroup.value.keywords) { }
@if (poCoToFieldsGroup.hasError('maxItemLength', 'keywords')) { {{ 'Forms.PoCoToSection.KeywordsInput.ValidatorMaxLength' | translate: { length: poCoToFieldsGroup.getError('maxItemLength', 'keywords').requiredLength } }} }
@let isAuthorFieldInvalid = poCoToFieldsGroup.controls.author.touched && poCoToFieldsGroup.controls.author.invalid;
@if (poCoToFieldsGroup.value.author) { }
@if (poCoToFieldsGroup.hasError('required', 'author')) { {{ 'Forms.PoCoToSection.AuthorInput.ValidatorRequired' | translate }} } @else if (poCoToFieldsGroup.hasError('maxlength', 'author')) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: poCoToFieldsGroup.getError('maxlength', 'author').requiredLength } }} }
@let isLogoInvalid = poCoToFieldsGroup.controls.logoImage.touched && poCoToFieldsGroup.controls.logoImage.invalid; @let logoFileTypeInvalid = poCoToFieldsGroup.hasError('fileType', 'logoImage'); @let logoFileSizeInvalid = poCoToFieldsGroup.hasError('maxFileSize', 'logoImage'); @let logoFileDimensionsInvalid = poCoToFieldsGroup.hasError('maxDimensions', 'logoImage'); @if (isLogoInvalid) { }
@let isIllustrativeGraphicsInvalid = poCoToFieldsGroup.controls.illustrativeGraphics.touched && poCoToFieldsGroup.controls.illustrativeGraphics.invalid; @let illustrativeGraphicsFileTypeInvalid = poCoToFieldsGroup.hasError('fileType', 'illustrativeGraphics'); @let illustrativeGraphicsFileSizeInvalid = poCoToFieldsGroup.hasError('maxFileSize', 'illustrativeGraphics'); @let illustrativeGraphicsFileDimensionsInvalid = poCoToFieldsGroup.hasError('maxDimensions', 'illustrativeGraphics'); @if (isIllustrativeGraphicsInvalid) { }

{{ 'Forms.PoCoToSection.DatasetMultiselect.Label' | translate }} {{ 'Forms.PoCoToSection.DatasetMultiselect.Paragraph' | translate }}

@for (datasetControl of poCoToFieldsGroup.controls.datasets.controls; track $index) {
{{ 'Forms.PoCoToSection.DatasetMultiselect.ValidatorRequired' | translate }}
}

{{ 'Forms.PoCoToSection.ExternalDatasetMultiselect.Label' | translate }} {{ 'Forms.PoCoToSection.ExternalDatasetMultiselect.Paragraph' | translate }}

@for (externalDatasetControl of poCoToFieldsGroup.controls.externalDatasets.controls; track $index) {
@let isTitleFieldInvalid = externalDatasetControl.controls.title.touched && externalDatasetControl.controls.title.invalid; @let isUrlFieldInvalid = externalDatasetControl.controls.url.touched && externalDatasetControl.controls.url.invalid;
@let titleMaxLengthError = externalDatasetControl.getError('maxlength', 'title'); @let titleRequiredError = externalDatasetControl.getError('required', 'title'); @let urlRequiredError = externalDatasetControl.getError('required', 'url'); @let urlMaxLengthError = externalDatasetControl.getError('maxlength', 'url'); @let urlPatternError = externalDatasetControl.getError('pattern', 'url'); @if (isTitleFieldInvalid && titleRequiredError) { {{ 'Forms.PoCoToSection.ExternalDatasetLinkNameInput.ValidatorRequired' | translate }} } @else if (isUrlFieldInvalid && urlRequiredError) { {{ 'Forms.PoCoToSection.ExternalDatasetLinkInput.ValidatorRequired' | translate }} } @else if (isTitleFieldInvalid && titleMaxLengthError) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: titleMaxLengthError.requiredLength } }} } @else if (isUrlFieldInvalid && urlMaxLengthError) { {{ 'Forms.Validators.ValidatorMaxLength' | translate: { length: urlMaxLengthError.requiredLength } }} } @else if (isUrlFieldInvalid && urlPatternError) { {{ 'Forms.Validators.ValidatorPatternLink' | translate }} }
}
}

{{ 'Forms.ConsentsSection.SectionTitle' | translate }}

@let isPersonalDataAcceptedFieldInvalid = poCoToFieldsGroup.controls.personalDataAccepted.invalid && poCoToFieldsGroup.controls.personalDataAccepted.touched; @if (cmsPageInfo$ | async; as cmsPageInfo) { }
@if (poCoToFieldsGroup.hasError('required', 'personalDataAccepted')) { {{ 'Forms.ConsentsSection.ValidatorRequired' | translate }} }
@if (poCoToFieldsGroup.hasError('required', 'tosAccepted')) { {{ 'Forms.ConsentsSection.ValidatorRequired' | translate }} }