<%= form_with url: schedule_edit_update_modbus_index_path, method: :post, class: 'flex flex-col h-full divide-y divide-border-table-border' do %>
<% @schedule.each do |s| %> <% end %>
시간 온도
<%= s.hour %>시 <%= number_field_tag "schedule[#{s.id}][temperature]", s.temperature, step: "0.1", inputmode: "decimal", class: "border px-2 py-1 rounded" %> °C
<%= submit_tag "업데이트", class: "btn bg-primary" %>
<% end %>
<%= button_to "추가하기", open_modals_path(type: "add_schedule"), class: "btn btn-default", data: { turbo_method: :post, turbo_frame: "modals" } %>