Skip to content

Commit

Permalink
chore: refactor string interpolation to binding
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Sep 26, 2024
1 parent c9f0ec2 commit 5a38d14
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ <h1 mat-dialog-title>
<input
matInput
autocomplete="new-name"
placeholder="{{
[placeholder]="
'create_data_offer_page.title_placeholder' | translate
}}"
"
[formControl]="form.metadata.controls.title" />
<button
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.title_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -46,9 +46,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.version_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -70,9 +70,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.asset_id_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.pattern">
Expand Down Expand Up @@ -157,10 +157,10 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.endpoint_documentation_tooltip'
| translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.pattern">
Expand All @@ -181,9 +181,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.publisher_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.pattern">
Expand All @@ -203,9 +203,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.standard_license_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.pattern">
Expand Down Expand Up @@ -255,9 +255,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.data_model_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -266,7 +266,7 @@ <h1 mat-dialog-title>
<!-- Transport Mode -->
<transport-mode-select
class="grow"
label="{{ 'create_data_offer_page.transport_mode' | translate }}"
[label]="'create_data_offer_page.transport_mode' | translate"
[control]="
form.advanced.controls.transportMode
"></transport-mode-select>
Expand All @@ -284,9 +284,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.geo_reference_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -299,17 +299,17 @@ <h1 mat-dialog-title>
}}</mat-label>
<input
matInput
placeholder="{{
[placeholder]="
'create_data_offer_page.sovereign_placeholder' | translate
}}"
"
[formControl]="form.advanced.controls.sovereignLegalName" />
<button
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.sovereign_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -322,19 +322,19 @@ <h1 mat-dialog-title>
}}</mat-label>
<input
matInput
placeholder="{{
[placeholder]="
'create_data_offer_page.data_update_frequency_placeholder'
| translate
}}"
"
[formControl]="form.advanced.controls.dataUpdateFrequency" />
<button
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.data_update_frequency_tooltip'
| translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -352,9 +352,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.geo_location_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand All @@ -370,9 +370,9 @@ <h1 mat-dialog-title>
mat-icon-button
matSuffix
matTooltipPosition="right"
matTooltip="{{
[matTooltip]="
'create_data_offer_page.nuts_locations_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</div>
Expand Down Expand Up @@ -417,9 +417,9 @@ <h1 mat-dialog-title>
mat-icon-button
matSuffix
matTooltipPosition="right"
matTooltip="{{
[matTooltip]="
'create_data_offer_page.data_samples_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</div>
Expand Down Expand Up @@ -466,9 +466,9 @@ <h1 mat-dialog-title>
mat-icon-button
matSuffix
matTooltipPosition="right"
matTooltip="{{
[matTooltip]="
'create_data_offer_page.reference_files_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</div>
Expand Down Expand Up @@ -544,15 +544,15 @@ <h1 mat-dialog-title>
<input
matStartDate
formControlName="from"
placeholder="{{
[placeholder]="
'create_data_offer_page.start_date' | translate
}}" />
" />
<input
matEndDate
formControlName="toInclusive"
placeholder="{{
'create_data_offer_page.end-date-inclusive' | translate
}}" />
[placeholder]="
'create_data_offer_page.end_date_inclusive' | translate
" />
</mat-date-range-input>
<mat-hint
>{{ 'create_data_offer_page.temporal_coverage_hint' | translate }}
Expand All @@ -574,10 +574,10 @@ <h1 mat-dialog-title>
<textarea
class="h-28"
matInput
placeholder="{{
[placeholder]="
'create_data_offer_page.conditions_for_use_placeholder'
| translate
}}"
"
[formControl]="
form.advanced.controls.conditionsForUse
"></textarea>
Expand Down Expand Up @@ -656,9 +656,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.contact_email_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
<mat-error *ngIf="ctrl.invalid && ctrl.errors?.email">
Expand Down Expand Up @@ -688,9 +688,9 @@ <h1 mat-dialog-title>
class="!scale-[0.9]"
mat-icon-button
matSuffix
matTooltip="{{
[matTooltip]="
'create_data_offer_page.email_subject_tooltip' | translate
}}">
">
<mat-icon>info_outline</mat-icon>
</button>
</mat-form-field>
Expand Down Expand Up @@ -952,11 +952,11 @@ <h1 mat-dialog-title>
}}</mat-label>
<input
matInput
placeholder="{{
autocomplete="new-auth-header-name"
[placeholder]="
'create_data_offer_page.authorization_header_placeholder'
| translate
}}"
autocomplete="new-auth-header-name"
"
[formControl]="form.datasource.controls.httpAuthHeaderName" />
</mat-form-field>

Expand All @@ -969,9 +969,9 @@ <h1 mat-dialog-title>
<mat-label>{{ 'general.auth_value' | translate }}</mat-label>
<input
matInput
placeholder="{{
[placeholder]="
'create_data_offer_page.bearer_placeholder' | translate
}}"
"
[formControl]="
form.datasource.controls.httpAuthHeaderValue
" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ <h1 mat-dialog-title>
'contract_agreement_page.cus_meth' | translate
}}</mat-label>
<mat-select
placeholder="{{
'contract_agreement_page.cus_meth' | translate
}}"
[placeholder]="'contract_agreement_page.cus_meth' | translate"
[formControl]="ctrl">
<mat-option></mat-option>
<mat-option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,16 @@
}}</mat-card-subtitle>
<div>
<p class="text-justify">
{{ 'dashboard_page.marketing_ce_intro' | translate }}
<a class="link" href="https://sovity.de" target="_blank">sovity</a
><br />
{{ 'dashboard_page.marketing_ce_intro2' | translate }}
<translate-with-slot
key="dashboard_page.marketing_ce_intro"
[html]="true">
<a class="link" href="https://sovity.de" target="_blank">sovity</a>
</translate-with-slot>
<br />
<span
[innerHTML]="
'dashboard_page.marketing_ce_intro2' | translate
"></span>
</p>
<div class="flex flex-row !space-x-[10px]">
<a
Expand Down
Loading

0 comments on commit 5a38d14

Please sign in to comment.