{{ 'labels.inputs.Key' | translate }} @if (surveyForm.controls.key.hasError('required')) { {{ 'labels.inputs.Key' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Name' | translate }} @if (surveyForm.controls.name.hasError('required')) { {{ 'labels.inputs.Name' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Country Code' | translate }} @if (surveyForm.controls.countryCode.hasError('required')) { {{ 'labels.inputs.Country Code' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (surveyForm.controls.countryCode.hasError('pattern')) { {{ 'labels.inputs.Country Code' | translate }} {{ 'labels.commons.must consist of 2 alphabetic characters' | translate }} } {{ 'labels.inputs.Description' | translate }} @if (!questionDatas.length) {
}
@for (question of questionDatas.controls; track question; let questionIndex = $index; let isLast = $last) {

{{ 'labels.heading.Question' | translate }} {{ questionIndex + 1 }}

{{ 'labels.inputs.Key' | translate }} @if (question.controls.key.hasError('required')) { {{ 'labels.inputs.Key' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Text' | translate }} @if (question.controls.text.hasError('required')) { {{ 'labels.inputs.Text' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Description' | translate }}

{{ 'labels.heading.Options' | translate }}

@for ( response of getResponseDatas(questionIndex).controls; track response; let responseIndex = $index ) {
{{ 'labels.inputs.Text' | translate }} @if (response.controls.text.hasError('required')) { {{ 'labels.inputs.Text' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Value' | translate }} @if (response.controls.value.hasError('required')) { {{ 'labels.inputs.Value' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (response.controls.value.hasError('pattern')) { {{ 'labels.inputs.Value' | translate }} {{ 'labels.commons.must be an integer between -9999 and 9999' | translate }} }
}
@if (isLast) { }
}