Skip to content

Commit

Permalink
TWEAK: Allow time-box inputs to accept 09:00 AM as minimum hour.
Browse files Browse the repository at this point in the history
  • Loading branch information
iangullo committed Oct 30, 2024
1 parent bb2d0c6 commit 9aeac6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/input_box_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<%= @form.text_field(@fdata[:key], value: @fdata[:value], placeholder: @fdata[:placeholder], size: @fdata[:size], rows: @fdata[:rows], class: @i_class, data: @i_data) %>
<% end %>
<% when "time-box" %>
<%= @form.number_field(:hour, value: @fdata[:hour], in: 10..22, size: @fdata[:size] || 3, class: @i_class, data: @i_data.merge({condition: "min:6"})) %>
<%= @form.number_field(:hour, value: @fdata[:hour], in: 09..22, size: @fdata[:size] || 3, class: @i_class, data: @i_data.merge({condition: "min:6"})) %>
<strong>:</strong>
<%= @form.number_field(:min, value: @fdata[:mins], in: 0..45, step: 15, size: @fdata[:size] || 3, class: @i_class, data: @i_data.merge({condition: "max:59"})) %>
<% when "upload" %>
Expand Down

0 comments on commit 9aeac6a

Please sign in to comment.