text_field 를 number_field 로 변경

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

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title><%= content_for(:title) || "Farmitry Hvac" %></title> <title><%= content_for(:title) || "Farmitry Hvac" %></title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<%= csrf_meta_tags %> <%= csrf_meta_tags %>

View File

@ -3,7 +3,7 @@
<div class="flex justify-items-center gap-x-2 pb-2"> <div class="flex justify-items-center gap-x-2 pb-2">
<div><%= s.hour %>시</div> <div><%= s.hour %>시</div>
<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>
</div> </div>
<% end %> <% end %>