|
|
|
@ -157,17 +157,15 @@
|
|
|
|
|
>Asset Sub Class</gf-value
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<ng-container
|
|
|
|
|
*ngIf="
|
|
|
|
|
assetProfile?.countries?.length > 0 ||
|
|
|
|
|
assetProfile?.sectors?.length > 0
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
@if (
|
|
|
|
|
assetProfile?.countries?.length > 0 || assetProfile?.sectors?.length > 0
|
|
|
|
|
) {
|
|
|
|
|
@if (
|
|
|
|
|
assetProfile?.countries?.length === 1 &&
|
|
|
|
|
assetProfile?.sectors?.length === 1
|
|
|
|
|
) {
|
|
|
|
|
<div *ngIf="assetProfile?.sectors?.length === 1" class="col-6 mb-3">
|
|
|
|
|
@if (assetProfile?.sectors?.length === 1) {
|
|
|
|
|
<div class="col-6 mb-3">
|
|
|
|
|
<gf-value
|
|
|
|
|
i18n
|
|
|
|
|
size="medium"
|
|
|
|
@ -176,7 +174,9 @@
|
|
|
|
|
>Sector</gf-value
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="assetProfile?.countries?.length === 1" class="col-6 mb-3">
|
|
|
|
|
}
|
|
|
|
|
@if (assetProfile?.countries?.length === 1) {
|
|
|
|
|
<div class="col-6 mb-3">
|
|
|
|
|
<gf-value
|
|
|
|
|
i18n
|
|
|
|
|
size="medium"
|
|
|
|
@ -185,6 +185,7 @@
|
|
|
|
|
>Country</gf-value
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
} @else {
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
|
<div class="h5" i18n>Sectors</div>
|
|
|
|
@ -207,7 +208,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</ng-container>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mt-3">
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint">
|
|
|
|
@ -215,7 +216,8 @@
|
|
|
|
|
<input formControlName="name" matInput type="text" />
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="assetProfile?.dataSource === 'MANUAL'" class="mt-3">
|
|
|
|
|
@if (assetProfile?.dataSource === 'MANUAL') {
|
|
|
|
|
<div class="mt-3">
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint">
|
|
|
|
|
<mat-label i18n>Currency</mat-label>
|
|
|
|
|
<gf-currency-selector
|
|
|
|
@ -224,6 +226,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div class="mt-3">
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint">
|
|
|
|
|
<mat-label i18n>Asset Class</mat-label>
|
|
|
|
@ -282,7 +285,8 @@
|
|
|
|
|
></textarea>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="assetProfile?.dataSource === 'MANUAL'">
|
|
|
|
|
@if (assetProfile?.dataSource === 'MANUAL') {
|
|
|
|
|
<div>
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
|
|
|
<mat-label i18n>Scraper Configuration</mat-label>
|
|
|
|
|
<div class="align-items-end d-flex">
|
|
|
|
@ -307,7 +311,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="assetProfile?.dataSource === 'MANUAL'">
|
|
|
|
|
<div>
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
|
|
|
<mat-label i18n>Sectors</mat-label>
|
|
|
|
|
<textarea
|
|
|
|
@ -318,7 +322,7 @@
|
|
|
|
|
></textarea>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="assetProfile?.dataSource === 'MANUAL'">
|
|
|
|
|
<div>
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
|
|
|
<mat-label i18n>Countries</mat-label>
|
|
|
|
|
<textarea
|
|
|
|
@ -329,10 +333,18 @@
|
|
|
|
|
></textarea>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div>
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint">
|
|
|
|
|
<mat-label i18n>Url</mat-label>
|
|
|
|
|
<input formControlName="url" matInput type="text" />
|
|
|
|
|
@if (assetProfileForm.controls['url'].value) {
|
|
|
|
|
<gf-symbol-icon
|
|
|
|
|
class="mr-3"
|
|
|
|
|
matSuffix
|
|
|
|
|
[url]="assetProfileForm.controls['url'].value"
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mt-3">
|
|
|
|
|