31 lines
956 B
Plaintext
31 lines
956 B
Plaintext
<div class="flex flex-col h-full divide-y divide-base-border text-white">
|
|
<div class="flex flex-col flex-1 p-4 space-y-4 overflow-y-hidden">
|
|
<div class="overflow-y-auto space-y-4">
|
|
<div class="flex justify-between">
|
|
<div class="text-2xl font-bold"><%= @controller.name %> 컨트롤러</div>
|
|
<%= link_to "수정", schedule_edit_schedule_path(@controller.id), class: "btn bg-default-slate" %>
|
|
</div>
|
|
<table class="base-table">
|
|
<thead>
|
|
<tr>
|
|
<th>시간</th>
|
|
<th>분</th>
|
|
<th>사용여부</th>
|
|
<th>온도</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @schedule.each do |s| %>
|
|
<tr>
|
|
<td><%= s.hour %>시</td>
|
|
<td><%= s.minute %>분</td>
|
|
<td><%= s.is_active %></td>
|
|
<td><%= s.temperature %> °C</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|