|
@@ -1,80 +1,80 @@
|
|
|
-<div class="modal-dimensions">
|
|
|
- <div class="add-form-group">
|
|
|
- <div class="modal-title">
|
|
|
- <h3 *ngIf="!isUpdate">Fähigkeit erstellen</h3>
|
|
|
- <h3 *ngIf="isUpdate">Fähigkeit anpassen</h3>
|
|
|
+<div class="dimensions">
|
|
|
+ <div class="title">Fähigkeit @if(isUpdate){anpassen}@else{erstellen}</div>
|
|
|
+
|
|
|
+ <div class="flex-form t-15">
|
|
|
+ <div>
|
|
|
+ <div class="name">Name</div>
|
|
|
+ <mat-form-field appearance="outline" class="w-50">
|
|
|
+ <input matInput [(ngModel)]="name" />
|
|
|
+ </mat-form-field>
|
|
|
</div>
|
|
|
- <div class="modal-body">
|
|
|
- <div class="modal-input">
|
|
|
- <label for="abilityName">Name</label>
|
|
|
- <input
|
|
|
- type="text"
|
|
|
- class="modal-input"
|
|
|
- id="abilityName"
|
|
|
- [(ngModel)]="name"
|
|
|
- />
|
|
|
- </div>
|
|
|
|
|
|
- <div class="modal-input">
|
|
|
- <label for="abilityShortDescription">Kurzbeschreibung</label>
|
|
|
- <textarea
|
|
|
- id="abilityShortDescription"
|
|
|
+ <div>
|
|
|
+ <div class="name">Kurze Beschreibung</div>
|
|
|
+ <div class="NgxEditor__Wrapper">
|
|
|
+ <ngx-editor-menu [editor]="shortEditor" [toolbar]="toolbar">
|
|
|
+ </ngx-editor-menu>
|
|
|
+ <ngx-editor
|
|
|
+ [editor]="shortEditor"
|
|
|
[(ngModel)]="shortDescription"
|
|
|
- ></textarea>
|
|
|
+ ></ngx-editor>
|
|
|
</div>
|
|
|
+ <div class="hint">Wird in der Übersicht angezeigt</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="modal-input">
|
|
|
- <label for="abilityLongDescription">Ausführliche Beschreibung</label>
|
|
|
- <textarea
|
|
|
- id="abilityLongDescription"
|
|
|
+ <div>
|
|
|
+ <div class="name">Ausführliche Beschreibung</div>
|
|
|
+ <div class="NgxEditor__Wrapper">
|
|
|
+ <ngx-editor-menu [editor]="longEditor" [toolbar]="toolbar">
|
|
|
+ </ngx-editor-menu>
|
|
|
+ <ngx-editor
|
|
|
+ [editor]="longEditor"
|
|
|
[(ngModel)]="longDescription"
|
|
|
- ></textarea>
|
|
|
+ ></ngx-editor>
|
|
|
</div>
|
|
|
+ <div class="hint">Wird in der Detailansicht angezeigt</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="modal-input">
|
|
|
- <label>Kosten</label>
|
|
|
- <select [(ngModel)]="cost">
|
|
|
- <option *ngFor="let cost of costs" [value]="cost.value">
|
|
|
- {{ cost.display }}
|
|
|
- </option>
|
|
|
- </select>
|
|
|
+ <div class="flex-row">
|
|
|
+ <div class="w-100">
|
|
|
+ <div class="name">Kosten</div>
|
|
|
+
|
|
|
+ <mat-form-field appearance="outline" class="w-100">
|
|
|
+
|
|
|
+ <mat-select [(ngModel)]="cost">
|
|
|
+ @for (cost of costs; track cost) {
|
|
|
+ <mat-option [value]="cost.value">{{ cost.display }}</mat-option
|
|
|
+ >}
|
|
|
+ </mat-select>
|
|
|
+ </mat-form-field>
|
|
|
</div>
|
|
|
|
|
|
- <div class="modal-input">
|
|
|
- <label>Verwendungen</label>
|
|
|
- <select [(ngModel)]="charges">
|
|
|
- <option
|
|
|
- *ngFor="let charge of chargesTranslator"
|
|
|
- [value]="charge.value"
|
|
|
- >
|
|
|
- {{ charge.display }}
|
|
|
- </option>
|
|
|
- </select>
|
|
|
+ <div class="w-100">
|
|
|
+ <div class="name">Nutzungen</div>
|
|
|
+ <mat-form-field appearance="outline" class="w-100">
|
|
|
+
|
|
|
+ <mat-select [(ngModel)]="charges">
|
|
|
+ @for (charge of chargesTranslator; track charge) {
|
|
|
+ <mat-option [value]="charge.value">{{ charge.display }}</mat-option
|
|
|
+ >}
|
|
|
+ </mat-select>
|
|
|
+ </mat-form-field>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="button-wrapper-2-block">
|
|
|
- @if(isUpdate){
|
|
|
- <ui-button
|
|
|
- [type]="'update'"
|
|
|
- [size]="'xlarge'"
|
|
|
- [color]="'primary'"
|
|
|
- (click)="update()"
|
|
|
- ></ui-button>
|
|
|
- }@else{
|
|
|
- <ui-button
|
|
|
- *ngIf="!isUpdate"
|
|
|
- [type]="'add'"
|
|
|
- [size]="'xlarge'"
|
|
|
- [color]="'primary'"
|
|
|
- (click)="add()"
|
|
|
- ></ui-button>
|
|
|
- }
|
|
|
- <ui-button
|
|
|
- [type]="'cancel'"
|
|
|
- [size]="'xlarge'"
|
|
|
- [color]="'primary'"
|
|
|
- (click)="cancel()"
|
|
|
- ></ui-button>
|
|
|
+
|
|
|
+ <div class="horizontal-buttons">
|
|
|
+ @if(isUpdate){
|
|
|
+ <ui-button [color]="'green'" [width]="'w20'" (click)="update()"
|
|
|
+ >Aktualisieren</ui-button
|
|
|
+ >
|
|
|
+ }@else{
|
|
|
+ <ui-button [color]="'green'" [width]="'w20'" (click)="add()"
|
|
|
+ >hinzufügen</ui-button
|
|
|
+ >
|
|
|
+ }
|
|
|
+ <ui-button [color]="'red'" [width]="'w20'" (click)="cancel()"
|
|
|
+ >Abbrechen</ui-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|