Retention controls and data should be number / int not string

The Retention input controls in Log, Visitors and Notifications allowed text to be saved.  Modified all controls to accept only number.
This commit is contained in:
Leigh Pointer
2023-12-01 18:05:52 +01:00
parent 5db61b78ea
commit 886b63e55b
4 changed files with 13 additions and 13 deletions

View File

@ -45,7 +45,7 @@
<div class="row mb-1 align-items-center">
<Label Class="col-sm-3" For="retention" HelpText="Number of log entries to retain for this job" ResourceKey="RetentionLog">Retention Log (Items): </Label>
<div class="col-sm-9">
<input id="retention" class="form-control" @bind="@_retentionHistory" maxlength="4" required />
<input id="retention" type="number" min="0" step ="1" class="form-control" @bind="@_retentionHistory" maxlength="4" required />
</div>
</div>
<div class="row mb-1 align-items-center">