add startPage option, other fixes and improvements
This commit is contained in:
@@ -6,30 +6,31 @@
|
||||
<mat-label>{{ 'admin.system_properties.key' | i18n }}</mat-label>
|
||||
<input matInput formControlName="key" [placeholder]="'admin.system_properties.key' | i18n" required>
|
||||
@if (form.get('key')?.hasError('required')) {
|
||||
<mat-error>
|
||||
{{ 'admin.system_properties.key_required' | i18n }}
|
||||
</mat-error>
|
||||
<mat-error>
|
||||
{{ 'admin.system_properties.key_required' | i18n }}
|
||||
</mat-error>
|
||||
}
|
||||
@if (isEditMode) {
|
||||
<mat-hint>{{ 'admin.system_properties.key_readonly' | i18n }}</mat-hint>
|
||||
<mat-hint>{{ 'admin.system_properties.key_readonly' | i18n }}</mat-hint>
|
||||
}
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>{{ 'admin.system_properties.value' | i18n }}</mat-label>
|
||||
<textarea matInput formControlName="value" [placeholder]="'admin.system_properties.value' | i18n" rows="5" required></textarea>
|
||||
<textarea matInput formControlName="value" [placeholder]="'admin.system_properties.value' | i18n" rows="5"
|
||||
required></textarea>
|
||||
@if (form.get('value')?.hasError('required')) {
|
||||
<mat-error>
|
||||
{{ 'admin.system_properties.value_required' | i18n }}
|
||||
</mat-error>
|
||||
<mat-error>
|
||||
{{ 'admin.system_properties.value_required' | i18n }}
|
||||
</mat-error>
|
||||
}
|
||||
</mat-form-field>
|
||||
</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)="onSubmit()" [disabled]="!form.valid">
|
||||
<mat-dialog-actions>
|
||||
<a mat-raised-button color="primary" (click)="onSubmit()" [disabled]="!form.valid">
|
||||
{{ (isEditMode ? 'admin.save' : 'admin.create') | i18n }}
|
||||
</button>
|
||||
</mat-dialog-actions>
|
||||
</a>
|
||||
<a mat-button (click)="onCancel()">{{ 'cancel' | i18n }}</a>
|
||||
</mat-dialog-actions>
|
||||
Reference in New Issue
Block a user