style: mix format

This commit is contained in:
Vladimir Rubin 2024-12-23 00:10:10 +02:00
parent c60a5e0f12
commit a724826a59
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -35,20 +35,32 @@
</b> </b>
</div> </div>
</div> </div>
<button phx-click="edit" phx-value-id={exam.id} <button
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-3 rounded-md"> phx-click="edit"
phx-value-id={exam.id}
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-3 rounded-md"
>
{gettext("Edit")} {gettext("Edit")}
</button> </button>
<button phx-click="remove" phx-value-id={exam.id} <button
class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-3 rounded-md"> phx-click="remove"
phx-value-id={exam.id}
class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-3 rounded-md"
>
{gettext("Remove")} {gettext("Remove")}
</button> </button>
</div> </div>
</div> </div>
<.modal :if={@live_action in [:new, :edit]} id="exam-modal" show on_cancel={JS.patch(~p"/exams")}> <.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} <.live_component
action={@live_action} exam={@exam} patch={~p"/exams"} /> module={ExmrWeb.ExamLive.FormComponent}
id={@exam.id || :new}
title={@page_title}
action={@live_action}
exam={@exam}
patch={~p"/exams"}
/>
</.modal> </.modal>
<div> <div>