<.header> Listing Exams
|
<:actions> <.link patch={~p"/exams/new"}> <.button class="dark:bg-sky-300 text-white dark:text-black/80 dark:hover:bg-sky-400"> New Exam
<%= exam.subject %>
<%= exam.date %>
<.modal :if={@live_action in [:new, :edit]} id="exam-modal" show on_cancel={JS.patch(~p"/exams")}> <.live_component module={ExmrWeb.ExamLive.FormComponent} id={@exam.id || :new} title={@page_title} action={@live_action} exam={@exam} patch={~p"/exams"} />