style: mix format
This commit is contained in:
parent
c60a5e0f12
commit
a724826a59
1 changed files with 51 additions and 39 deletions
|
@ -35,20 +35,32 @@
|
|||
</b>
|
||||
</div>
|
||||
</div>
|
||||
<button 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">
|
||||
<button
|
||||
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")}
|
||||
</button>
|
||||
<button 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">
|
||||
<button
|
||||
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")}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<.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"} />
|
||||
<.live_component
|
||||
module={ExmrWeb.ExamLive.FormComponent}
|
||||
id={@exam.id || :new}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
exam={@exam}
|
||||
patch={~p"/exams"}
|
||||
/>
|
||||
</.modal>
|
||||
|
||||
<div>
|
||||
|
|
Loading…
Reference in a new issue