|
@@ -1,72 +1,73 @@
|
|
<div class="dimensions">
|
|
<div class="dimensions">
|
|
<div class="title">
|
|
<div class="title">
|
|
- Fähigkeit
|
|
|
|
@if (isUpdate && !isAddedFromCharacter) {
|
|
@if (isUpdate && !isAddedFromCharacter) {
|
|
- anpassen
|
|
|
|
|
|
+ {{ "abilities.modal.editAbility" | translate }}
|
|
} @else {
|
|
} @else {
|
|
- erstellen
|
|
|
|
|
|
+ {{ "abilities.modal.addAbility" | translate }}
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="flex-form t-15">
|
|
<div class="flex-form t-15">
|
|
<div>
|
|
<div>
|
|
- <div class="input-label">Name</div>
|
|
|
|
|
|
+ <div class="input-label">{{ "modal.name" | translate }}</div>
|
|
<mat-form-field appearance="outline" class="w-50">
|
|
<mat-form-field appearance="outline" class="w-50">
|
|
<input matInput [(ngModel)]="name" />
|
|
<input matInput [(ngModel)]="name" />
|
|
</mat-form-field>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
- <div class="input-label">Kurze Beschreibung</div>
|
|
|
|
|
|
+ <div class="input-label">{{ "modal.shortDescription" | translate }}</div>
|
|
<div class="NgxEditor__Wrapper">
|
|
<div class="NgxEditor__Wrapper">
|
|
<ngx-editor-menu [editor]="shortEditor" [toolbar]="toolbar">
|
|
<ngx-editor-menu [editor]="shortEditor" [toolbar]="toolbar">
|
|
</ngx-editor-menu>
|
|
</ngx-editor-menu>
|
|
<ngx-editor
|
|
<ngx-editor
|
|
[editor]="shortEditor"
|
|
[editor]="shortEditor"
|
|
[(ngModel)]="shortDescription"
|
|
[(ngModel)]="shortDescription"
|
|
- placeholder="Kurze Beschreibung der Fähigkeit"
|
|
|
|
|
|
+ [placeholder]="'abilities.modal.shortPlaceholder' | translate"
|
|
></ngx-editor>
|
|
></ngx-editor>
|
|
</div>
|
|
</div>
|
|
- <div class="hint">Wird in der Übersicht angezeigt</div>
|
|
|
|
|
|
+ <div class="hint">{{ "modal.shortHint" | translate }}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
- <div class="input-label">Ausführliche Beschreibung</div>
|
|
|
|
|
|
+ <div class="input-label">{{ "modal.longDescription" | translate }}</div>
|
|
<div class="NgxEditor__Wrapper">
|
|
<div class="NgxEditor__Wrapper">
|
|
<ngx-editor-menu [editor]="longEditor" [toolbar]="toolbar">
|
|
<ngx-editor-menu [editor]="longEditor" [toolbar]="toolbar">
|
|
</ngx-editor-menu>
|
|
</ngx-editor-menu>
|
|
<ngx-editor
|
|
<ngx-editor
|
|
[editor]="longEditor"
|
|
[editor]="longEditor"
|
|
[(ngModel)]="longDescription"
|
|
[(ngModel)]="longDescription"
|
|
- placeholder="Ausführliche Beschreibung der Fähigkeit"
|
|
|
|
|
|
+ [placeholder]="'abilities.modal.shortPlaceholder' | translate"
|
|
></ngx-editor>
|
|
></ngx-editor>
|
|
</div>
|
|
</div>
|
|
- <div class="hint">Wird in der Detailansicht angezeigt</div>
|
|
|
|
|
|
+ <div class="hint">{{ "modal.longHint" | translate }}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="flex-row">
|
|
<div class="flex-row">
|
|
<div class="w-100">
|
|
<div class="w-100">
|
|
- <div class="input-label">Kosten</div>
|
|
|
|
|
|
+ <div class="input-label">{{ "modal.cost" | translate }}</div>
|
|
|
|
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
<!-- <mat-label>Kosten</mat-label> -->
|
|
<!-- <mat-label>Kosten</mat-label> -->
|
|
<mat-select [(ngModel)]="cost">
|
|
<mat-select [(ngModel)]="cost">
|
|
@for (cost of costs; track cost) {
|
|
@for (cost of costs; track cost) {
|
|
- <mat-option [value]="cost.value">{{ cost.display }}</mat-option>
|
|
|
|
|
|
+ <mat-option [value]="cost">{{
|
|
|
|
+ "cost." + cost | translate
|
|
|
|
+ }}</mat-option>
|
|
}
|
|
}
|
|
</mat-select>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="w-100">
|
|
<div class="w-100">
|
|
- <div class="input-label">Nutzungen</div>
|
|
|
|
|
|
+ <div class="input-label">{{ "modal.uses" | translate }}</div>
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
<!-- <mat-label>Nutzungen</mat-label> -->
|
|
<!-- <mat-label>Nutzungen</mat-label> -->
|
|
<mat-select [(ngModel)]="charges">
|
|
<mat-select [(ngModel)]="charges">
|
|
- @for (charge of chargesTranslator; track charge) {
|
|
|
|
- <mat-option [value]="charge.value">{{
|
|
|
|
- charge.display
|
|
|
|
- }}</mat-option>
|
|
|
|
|
|
+ @for (charge of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; track charge) {
|
|
|
|
+ <mat-option [value]="charge">
|
|
|
|
+ {{ "uses." + charge | translate }}</mat-option
|
|
|
|
+ >
|
|
}
|
|
}
|
|
</mat-select>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</mat-form-field>
|