|
|
|
@@ -14,8 +14,8 @@ |
|
|
|
|
|
|
|
<div class="mb-3"> |
|
|
|
<label for="partner" class="form-label">{{ 'form.partner' | translate }}:</label> |
|
|
|
<ng-container *ngIf="document.partnerIri === null || document.partnerIri === undefined"> |
|
|
|
<app-search-select #partnerSearchSelect *ngIf="document.id === null || document.id === undefined" |
|
|
|
<ng-container *ngIf="partner === undefined"> |
|
|
|
<app-search-select #partnerSearchSelect |
|
|
|
[formId]="'partnerIri'" |
|
|
|
[formLabelLangKey]="'form.partner'" |
|
|
|
[documentForm]="documentForm" |
|
|
|
@@ -26,19 +26,16 @@ |
|
|
|
> |
|
|
|
</app-search-select> |
|
|
|
<input type="hidden" id="partner" formControlName="partner" |
|
|
|
*ngIf="document.id === null || document.id === undefined"/> |
|
|
|
/> |
|
|
|
</ng-container> |
|
|
|
<input type="text" |
|
|
|
*ngIf="document.partnerIri !== null && document.partnerIri !== undefined && (document.id === null || document.id === undefined)" |
|
|
|
class="form-control" disabled value="{{partner.name}}"/> |
|
|
|
<input type="text" *ngIf="document.id !== null && document.id !== undefined" class="form-control" |
|
|
|
<input type="text" class="form-control" *ngIf="partner !== undefined" |
|
|
|
disabled value="{{partner?.name}}"/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mb-3"> |
|
|
|
<label for="product" class="form-label">{{ 'form.product' | translate }}:</label> |
|
|
|
<ng-container *ngIf="document.productIri === null || document.productIri === undefined"> |
|
|
|
<app-search-select #productSearchSelect *ngIf="document.id === null || document.id === undefined" |
|
|
|
<ng-container *ngIf="product === undefined"> |
|
|
|
<app-search-select #productSearchSelect |
|
|
|
[formId]="'productIri'" |
|
|
|
[formLabelLangKey]="'form.product'" |
|
|
|
[documentForm]="documentForm" |
|
|
|
@@ -48,13 +45,9 @@ |
|
|
|
[listColDefinitions]="SearchSelectComponent.getDefaultColDefProducts()" |
|
|
|
> |
|
|
|
</app-search-select> |
|
|
|
<input type="hidden" id="product" formControlName="product" |
|
|
|
*ngIf="document.id === null || document.id === undefined"/> |
|
|
|
<input type="hidden" id="product" formControlName="product"/> |
|
|
|
</ng-container> |
|
|
|
<input type="text" |
|
|
|
*ngIf="document.productIri !== null && document.productIri !== undefined && (document.id === null || document.id === undefined)" |
|
|
|
class="form-control" disabled value="{{product.name}}"/> |
|
|
|
<input type="text" *ngIf="document.id !== null && document.id !== undefined" class="form-control" |
|
|
|
<input type="text" class="form-control" *ngIf="product !== undefined" |
|
|
|
disabled value="{{product?.name}}"/> |
|
|
|
</div> |
|
|
|
|
|
|
|
|