text_field 를 number_field 로 변경

This commit is contained in:
2025-04-16 23:40:42 +09:00
parent 74f134c71a
commit 4b9c59b6e0
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<div class="flex justify-items-center gap-x-2 pb-2">
<div><%= s.hour %>시</div>
<div>
<%= text_field_tag "schedule[#{s.id}][temperature]", s.temperature, class: "border px-2 py-1 rounded" %> °C
<%= number_field_tag "schedule[#{s.id}][temperature]", s.temperature, step: "0.1", inputmode: "decimal", class: "border px-2 py-1 rounded" %> °C
</div>
</div>
<% end %>