Compare commits
2 Commits
faaf8677e3
...
55715a20eb
| Author | SHA1 | Date |
|---|---|---|
|
|
55715a20eb | |
|
|
29841e2d15 |
|
|
@ -49,7 +49,7 @@ class SchedulesController < ApplicationController
|
||||||
def schedule_edit_update
|
def schedule_edit_update
|
||||||
error_messages = []
|
error_messages = []
|
||||||
|
|
||||||
params[:schedule].each do |id, attributes|
|
params[:schedule]&.each do |id, attributes|
|
||||||
schedule = Schedule.find_by(id: id)
|
schedule = Schedule.find_by(id: id)
|
||||||
next unless schedule
|
next unless schedule
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,20 +23,20 @@
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="h-screen overflow-hidden bg-base-background text-base-text min-w-[400px] overflow-x-auto">
|
<body class="min-h-screen bg-base-background text-base-text min-w-[400px] overflow-x-auto h-full">
|
||||||
<%= turbo_frame_tag :modals %>
|
<%= turbo_frame_tag :modals %>
|
||||||
<main class="flex flex-col h-full">
|
<main class="flex flex-col h-full">
|
||||||
<%= render "partials/header" %>
|
<%= render "partials/header" %>
|
||||||
<div class="flex flex-row flex-1 w-full overflow-hidden">
|
<div class="flex flex-row flex-1 w-full">
|
||||||
<%= render "partials/sidebar" %>
|
<%= render "partials/sidebar" %>
|
||||||
<div class="flex-1 h-full pb-4 pr-4">
|
<div class="flex-1 h-full pb-4 pr-4">
|
||||||
<div class="flex-1 h-full content">
|
<div class="flex-1 h-full content">
|
||||||
<% if flash[:notice] %>
|
<% if flash[:notice] %>
|
||||||
<div class="m-4 rounded px-4 py-2 bg-accept text-white">
|
<div class="rounded px-4 py-2 bg-accept text-white">
|
||||||
<%= raw flash[:notice] %>
|
<%= raw flash[:notice] %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif flash[:alert] %>
|
<% elsif flash[:alert] %>
|
||||||
<div class="m-4 rounded px-4 py-2 bg-danger text-white">
|
<div class="rounded px-4 py-2 bg-danger text-white">
|
||||||
<%= raw flash[:alert] %>
|
<%= raw flash[:alert] %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue