This commit is contained in:
Daniel 2024-11-10 16:14:12 -05:00
parent 03b3ca4f52
commit 1c7b062b1c
2 changed files with 21 additions and 3 deletions

View file

@ -1,6 +1,23 @@
<div class="tgform"> <div class="tgform flex flex-col min-h-screen justify-center gap-9">
<form [formGroup]="form" (ngSubmit)="submit()"> <form [formGroup]="form" (ngSubmit)="submit()">
<label for="name">Name: </label> <div class="flex justify-center items-center flex-col gap-3">
<input id="name" type="text" formControlName="name" [(ngModel)]="tg.name" /> <label for="name">Name: </label><input id="name" type="text" formControlName="name" [(ngModel)]="tg.name" />
</div>
<div class="flex justify-center items-center flex-col gap-3">
<label for="alpha_tag">Alpha Tag: </label><input id="alpha_tag" type="text" formControlName="alpha_tag" [(ngModel)]="tg.alpha_tag" />
</div>
<div class="flex justify-center items-center flex-col gap-3">
<label for="tg_group">Group: </label><input id="tg_group" type="text" formControlName="tg_group" [(ngModel)]="tg.tg_group" />
</div>
<div class="flex justify-center items-center flex-col gap-3">
<label for="frequency">Frequency: </label><input id="frequency" type="text" formControlName="frequency" [(ngModel)]="tg.frequency" />
</div>
<div class="flex justify-center items-center flex-col gap-3">
<label for="alert">Alert: </label><input id="alert" type="checkbox" formControlName="alert" [(ngModel)]="tg.alert" />
</div>
<div class="flex justify-center items-center flex-col gap-3">
<label for="weight">Weight: </label><input id="weight" type="text" formControlName="weight" [(ngModel)]="tg.weight" />
</div>
<input type="submit" value="Save" />
</form> </form>
</div> </div>

View file

@ -43,6 +43,7 @@ export class TalkgroupRecordComponent {
name: new FormControl(''), name: new FormControl(''),
alpha_tag: new FormControl(''), alpha_tag: new FormControl(''),
tg_group: new FormControl(''), tg_group: new FormControl(''),
frequency: new FormControl(0),
alert: new FormControl(true), alert: new FormControl(true),
weight: new FormControl(1.0), weight: new FormControl(1.0),
}); });