Files
cbsnexora/src/app/system/configurations/global-configurations-tab/edit-configuration/edit-configuration.component.html
T

39 lines
1.1 KiB
HTML

<div class="container space">
<mat-card>
<form [formGroup]="configurationForm" (ngSubmit)="submit()">
<mat-card-content>
<div fxLayout="column">
<mat-form-field>
<mat-label>Configuration Name</mat-label>
<input matInput required formControlName="name">
</mat-form-field>
<mat-form-field>
<mat-label>Configuration Value</mat-label>
<input matInput required type="number" formControlName="value">
<mat-error *ngIf="configurationForm.controls.value.hasError('required')">
Configuration Value is <strong>required</strong>
</mat-error>
</mat-form-field>
</div>
</mat-card-content>
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../..']"> Cancel </button>
<button mat-raised-button color="primary" [disabled]="configurationForm.pristine || !configurationForm.valid">
Submit </button>
</mat-card-actions>
</form>
</mat-card>
</div>