불필요한 코드 정리 및 modal 추가

This commit is contained in:
2025-04-18 07:13:56 +09:00
parent 8041453c5e
commit 4a3d0313a2
17 changed files with 147 additions and 74 deletions

View File

@@ -11,7 +11,9 @@
<% @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>
<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>
@@ -22,3 +24,11 @@
<%= submit_tag "업데이트", class: "btn bg-primary" %>
</div>
<% end %>
<div class="flex p-4">
<%= button_to "추가하기", open_modals_path(type: "add_schedule"),
class: "btn btn-default",
data: {
turbo_method: :post,
turbo_frame: "modals"
} %>
</div>