Skip to content

Commit

Permalink
Extending add week fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsmth committed Jan 9, 2024
1 parent 24cfbe9 commit 80702f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ <h2 mat-dialog-title>Add New Week</h2>
<label for="block">Block</label><br>
<input id="block" type="number" value="Block" formControlName="block"><br>
<label for="week">Week</label><br>
<input id="week" type="number" value="Week" formControlName="week">
<input id="week" type="number" value="Week" formControlName="week"><br>
<label for="week-commencing">Week Commencing</label><br>
<input id="week-commencing" type="date" value="Week Commencing" formControlName="weekCommencing"><br>
<label for="week-notes">Week Notes</label><br>
<input id="week-notes" type="text" value="Week Notes" formControlName="weekNotes"><br>
</div>
<div class="form-group" id="general" [class.active]="activeFormSection == 1">
<h3>General</h3>
Expand All @@ -16,7 +20,7 @@ <h3>Resistance</h3>
<div class="form-group" id="running" formGroupName="running" [class.active]="activeFormSection == 3">
<h3>Running</h3>
<label for="volume">Volume</label><br>
<input id="volume" type="number" value="Volume (miles)" formControlName="volume">
<input id="volume" type="number" value="Volume (miles)" formControlName="volume"><br>
</div>
</form>
</mat-dialog-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export class AddWeekComponent implements OnInit {
this.weekForm = this.formBuilder.group({
block: ['', [Validators.required]],
week: ['', [Validators.required]],
weekCommencing: ['', [Validators.required]],
weekNotes: ['', [Validators.required]],

running: this.formBuilder.group({
volume: ['', [Validators.required]],
Expand Down

0 comments on commit 80702f2

Please sign in to comment.