Skip to content

Commit

Permalink
Merge pull request #45 from smagara/36-validation-limit-the-player-na…
Browse files Browse the repository at this point in the history
…me-team-birthplace-and-birthcountry-to-50-characters

Validation: limit text fields to 50 characters
  • Loading branch information
smagara authored Aug 23, 2024
2 parents 309470f + d64c696 commit 6f644ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/nhl/components/roster/roster.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ <h2 class="NHL">National Hockey League - Team Rosters</h2>
<div class="p-fluid">
<div class="p-field">
<label for="team">Team</label>
<input id="team" pInputText formControlName="team" />
<input id="team" pInputText formControlName="team" maxlength="50" />
</div>
<div class="p-field">
<label for="name">Name</label>
<input id="name" pInputText formControlName="name" />
<input id="name" pInputText formControlName="name" maxlength="50" />
</div>
<div class="p-field">
<label for="position">Position</label>
Expand Down Expand Up @@ -87,11 +87,11 @@ <h2 class="NHL">National Hockey League - Team Rosters</h2>
</div>
<div class="p-field">
<label for="birthCountry">Birth Country</label>
<input id="birthCountry" pInputText formControlName="birthCountry" />
<input id="birthCountry" pInputText formControlName="birthCountry" maxlength="50" />
</div>
<div class="p-field">
<label for="birthPlace">Birth Place</label>
<input id="birthPlace" pInputText formControlName="birthPlace" />
<input id="birthPlace" pInputText formControlName="birthPlace" maxlength="50" />
</div>
<div class="p-field">
<label for="age">Age</label>
Expand Down

0 comments on commit 6f644ba

Please sign in to comment.