Criar ou editar Input Data

@if (false && editForm.controls.id.value !== null) {
}
{{ '' // Period | Owner }}
@if (editForm.controls.id.value == null) { } @else { {{ inputData?.period?.name }} }
@if (editForm.controls.id.value == null) { } @else { {{ inputData?.owner?.name }} }
{{ '' // Variable }}
@if (editForm.controls.id.value == null) { {{'' // It's creating, make the variable editable}}
} @else { {{'' // Can't change the variable}} {{ inputData?.variable?.name }} }
{{ '' // Source Unit | Base Unit }}
@if (editForm.controls.id.value == null) { {{'' // It's creating, bind to editForm value}}  {{ editForm.get('unit')?.value?.name }} } @else { {{'' // It's editing, bind to inputdata value}}  {{ inputData?.unit?.name }} }
{{ '' // Source Value | Variable Value | Imputed Value }}
@if (editForm.get('sourceValue')!.invalid && (editForm.get('sourceValue')!.dirty || editForm.get('sourceValue')!.touched)) {
@if (editForm.get('sourceValue')?.errors?.required) { O campo é obrigatório. } Este campo é do tipo número.
}
{{ '' // AUTOMATIC. Not user editable. Value calculated from sourceValue }} {{ editForm.get('variableValue')?.value }}  @if (variableValueHasError) {
Ocorreu um erro na conversão do valor para a unidade base.
}
{{ '' // AUTOMATIC. Not user editable. Value calculated from variableValue deducted of distribution }} {{ editForm.get('imputedValue')?.value }} 
{{ '' // String Value }}
{{ '' // Variable Class }}
{{ '' // Source | Comments }}
{{ '' // Source Type | Input Data Upload | Input Data }}
@if (editForm.controls.id.value == null) { {{'' // It's creating, bind to editForm value}} {{ 'resilientApp.DataSourceType.' + editForm.get('sourceType')?.value | translate }} } @else { {{'' // It's editing, bind to inputData value}} {{ 'resilientApp.DataSourceType.' + inputData?.sourceType | translate }} }
{{'' // Can't change the InputDataUpload reference }} {{ inputData?.sourceInputDataUpload?.id }} 
{{'' // Can't change the InputData reference }} {{ inputData?.sourceInputData?.id }} 
{{ '' // Data Reference Date | Creation Date | Change Date }}
{{ '' // AUTOMATIC. Not user editable}} @if (editForm.controls.id.value == null) { {{'' // It's creating, bind to editForm value}} {{ editForm.get('creationDate')?.value }} } @else { {{'' // It's editing, bind to inputData value}} {{ inputData?.creationDate }} }
{{ '' // AUTOMATIC. Not user editable}} {{ inputData?.changeDate }} 
{{ '' // Aquired By | Created By | Changed By }}
{{ '' // AUTOMATIC. Not user editable}} {{ editForm.get('creationUsername')?.value }}
{{ '' // AUTOMATIC. Not user editable}} {{ editForm.get('changeUsername')?.value }}