24 lines
739 B
Plaintext
24 lines
739 B
Plaintext
<%= form_with url: schedule_edit_update_modbus_index_path, method: :post, class: 'flex flex-col h-full divide-y divide-border-table-border' do %>
|
|
<div class="flex-1 p-4">
|
|
<table class="base-table">
|
|
<thead>
|
|
<tr>
|
|
<th>시간</th>
|
|
<th>온도</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @schedule.each do |s| %>
|
|
<tr>
|
|
<td><%= s.hour %>시</td>
|
|
<td><%= number_field_tag "schedule[#{s.id}][temperature]", s.temperature, step: "0.1", inputmode: "decimal", class: "border px-2 py-1 rounded" %> °C</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="flex p-4">
|
|
<%= submit_tag "업데이트", class: "btn bg-primary" %>
|
|
</div>
|
|
<% end %> |