%= form_with model: @schedule, method: :post, data: { turbo: false }, class: 'flex flex-col h-full space-y-4' do |form| %> <%= form.hidden_field :controller_id, value: params[:id] %>
| 시간 | 분 | ON/OFF | 온도 |
|---|---|---|---|
| <%= form.select :hour, options_for_select((0..23).map { |h| [h.to_s.rjust(2, '0'), h] }, @schedule.hour), {}, class: "select-style text-white" %> | <%= form.number_field :minute, min: 0, max: 59, step: 1, inputmode: "decimal", class: "input-style" %> | <%= check_box_tag "schedule[is_active]", "1", true %> | <%= form.number_field :temperature, step: "0.1", inputmode: "decimal", class: "input-style" %> |