kateb-panel/src/routes/panel/reports/dialog/dialog.component.html

14 lines
765 B
HTML

<h1 mat-dialog-title>افزودن رشته ی تحصیلی جدید</h1>
<form [formGroup]="form" mat-dialog-content>
<mat-form-field appearance="outline">
<mat-label>عنوان رشته</mat-label>
<input matInput formControlName="major" type="text" autocomplete="off" (keyup.enter)="submit()">
</mat-form-field>
</form>
<div mat-dialog-actions>
<button mat-button color="warn" [disabled]="form.disabled" mat-dialog-close>لغو</button>
<button mat-raised-button color="primary" [disabled]="form.invalid || form.disabled" (click)="submit()">
<span *ngIf="form.disabled == false">ثبت و ارسال</span>
<mat-spinner *ngIf="form.disabled == true" color="primary" diameter="20"></mat-spinner>
</button>
</div>