add startPage option, other fixes and improvements

This commit is contained in:
_Bastler
2025-12-19 20:38:30 +01:00
parent 6875ed6bf2
commit db877f972a
46 changed files with 847 additions and 700 deletions
+11 -13
View File
@@ -5,30 +5,28 @@
<form>
<mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'admin.i18n.key' | i18n }}</mat-label>
<input matInput [(ngModel)]="key" name="key" required
[readonly]="data.entry !== null"
[placeholder]="'admin.i18n.key_placeholder' | i18n">
<input matInput [(ngModel)]="key" name="key" required [readonly]="data.entry !== null"
[placeholder]="'admin.i18n.key_placeholder' | i18n">
<mat-hint>{{ 'admin.i18n.key_hint' | i18n }}</mat-hint>
</mat-form-field>
<mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'admin.i18n.value' | i18n }}</mat-label>
<textarea matInput [(ngModel)]="value" name="value" required
rows="4"
[placeholder]="'admin.i18n.value_placeholder' | i18n"></textarea>
<textarea matInput [(ngModel)]="value" name="value" required rows="4"
[placeholder]="'admin.i18n.value_placeholder' | i18n"></textarea>
</mat-form-field>
@if (errorMessage) {
<mat-error class="error-message">{{ errorMessage }}</mat-error>
<mat-error class="error-message">{{ errorMessage }}</mat-error>
}
</form>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button (click)="onCancel()">{{ 'admin.cancel' | i18n }}</button>
<button mat-raised-button color="primary" (click)="onSave()" [disabled]="saving || !isValid()">
<mat-dialog-actions>
<a mat-raised-button color="primary" (click)="onSave()" [disabled]="saving || !isValid()">
@if (saving) {
<mat-spinner diameter="20"></mat-spinner>
<mat-spinner diameter="20"></mat-spinner>
}
{{ 'admin.save' | i18n }}
</button>
</mat-dialog-actions>
</a>
<a mat-button (click)="onCancel()">{{ 'cancel' | i18n }}</a>
</mat-dialog-actions>