@ -157,34 +157,35 @@
>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" >
< gf-value
i18n
size="medium"
[locale]="data.locale"
[value]="assetProfile?.sectors[0].name"
>Sector< /gf-value
>
< / div >
< div * ngIf = "assetProfile?.countries?.length === 1" class = "col-6 mb-3" >
< gf-value
i18n
size="medium"
[locale]="data.locale"
[value]="assetProfile?.countries[0].name"
>Country< /gf-value
>
< / div >
@if (assetProfile?.sectors?.length === 1) {
< div class = "col-6 mb-3" >
< gf-value
i18n
size="medium"
[locale]="data.locale"
[value]="assetProfile?.sectors[0].name"
>Sector< /gf-value
>
< / div >
}
@if (assetProfile?.countries?.length === 1) {
< div class = "col-6 mb-3" >
< gf-value
i18n
size="medium"
[locale]="data.locale"
[value]="assetProfile?.countries[0].name"
>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,15 +216,17 @@
< input formControlName = "name" matInput type = "text" / >
< / mat-form-field >
< / div >
< div * ngIf = "assetProfile?.dataSource === 'MANUAL'" class = "mt-3" >
< mat-form-field appearance = "outline" class = "w-100 without-hint" >
< mat-label i18n > Currency< / mat-label >
< gf-currency-selector
formControlName="currency"
[currencies]="currencies"
/>
< / mat-form-field >
< / div >
@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
formControlName="currency"
[currencies]="currencies"
/>
< / 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,57 +285,66 @@
>< / textarea >
< / mat-form-field >
< / div >
< div * ngIf = "assetProfile?.dataSource === 'MANUAL'" >
< mat-form-field appearance = "outline" class = "w-100" >
< mat-label i18n > Scraper Configuration< / mat-label >
< div class = "align-items-end d-flex" >
@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" >
< textarea
cdkTextareaAutosize
formControlName="scraperConfiguration"
matInput
type="text"
(keyup.enter)="$event.stopPropagation()"
>< / textarea >
< button
color="accent"
mat-flat-button
type="button"
[disabled]="
assetProfileForm.controls['scraperConfiguration'].value === '{}'
"
(click)="onTestMarketData()"
>
< ng-container i18n > Test< / ng-container >
< / button >
< / div >
< / mat-form-field >
< / div >
< div >
< mat-form-field appearance = "outline" class = "w-100" >
< mat-label i18n > Sectors< / mat-label >
< textarea
cdkTextareaAutosize
formControlName="scraperConfiguration"
formControlName="sectors "
matInput
type="text"
(keyup.enter)="$event.stopPropagation()"
>< / textarea >
< button
color="accent"
mat-flat-button
type="button"
[disabled]="
assetProfileForm.controls['scraperConfiguration'].value === '{}'
"
(click)="onTestMarketData()"
>
< ng-container i18n > Test< / ng-container >
< / button >
< / div >
< / mat-form-field >
< / div >
< div * ngIf = "assetProfile?.dataSource === 'MANUAL'" >
< mat-form-field appearance = "outline" class = "w-100" >
< mat-label i18n > Sectors< / mat-label >
< textarea
cdkTextareaAutosize
formControlName="sectors"
matInput
type="text"
>< / textarea >
< / mat-form-field >
< / div >
< div * ngIf = "assetProfile?.dataSource === 'MANUAL'" >
< mat-form-field appearance = "outline" class = "w-100" >
< mat-label i18n > Countries< / mat-label >
< textarea
cdkTextareaAutosize
formControlName="countries"
matInput
type="text"
>< / textarea >
< / mat-form-field >
< / div >
< / mat-form-field >
< / div >
< div >
< mat-form-field appearance = "outline" class = "w-100" >
< mat-label i18n > Countries< / mat-label >
< textarea
cdkTextareaAutosize
formControlName="countries"
matInput
type="text"
>< / 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" >