Skip to content

Commit

Permalink
make fields for adding users have type number
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Feb 14, 2024
1 parent 24f276d commit 20b43b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/ContentGenerator/Instructor/AddUsers.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<%= $c->hidden_authen_fields('create_') =%>
<div class="input-group d-inline-flex w-auto">
<%= submit_button maketext('Create'), class => 'btn btn-primary' =%>
<%= text_field number_of_students => $numberOfStudents, size => 3, class => 'form-control' =%>
<%= number_field number_of_students => $numberOfStudents, size => 5, min => 1, class => 'form-control' =%>
<span class="input-group-text"><%= maketext('entry rows.') %></span>
</div>
<% end =%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= maketext('Add how many users?') %><span class="required-field">*</span>
<% end =%>
<div class="col-auto">
<%= text_field number_of_students => 1, id => 'add_entry', size => 3, 'aria-required' => 'true',
<%= number_field number_of_students => 1, id => 'add_entry', size => 5, min => 1, 'aria-required' => 'true',
class => 'form-control form-control-sm' =%>
</div>
</div>

0 comments on commit 20b43b1

Please sign in to comment.