zgo/src/app/namedialog/namedialog.component.html

18 lines
625 B
HTML

<!-- TODO: get this dialog working right-->
<h2 mat-dialog-title>Set the name of your business</h2>
<main>
<form (submit)="save(nameForm)" #nameForm="ngForm">
<mat-dialog-content>
<mat-form-field>
<input matInput type="text" name="bizname" placeholder="Bubba's Bakery" ngModel required #bizname="ngModel">
<mat-error *ngIf="bizname.invalid">This field is required</mat-error>
</mat-form-field>
</mat-dialog-content>
<mat-dialog-actions>
<button class="mat-raised-button" (click)="close()">Close</button>
<button class="mat-raised-button mat-primary" type="submit">Save</button>
</mat-dialog-actions>
</form>
</main>