Compare commits
No commits in common. "4ef23a5ec945a879bcce465de95af606cc4d4ab7" and "c60a5e0f12ed0a98d577f7a72603d2cc3d079acc" have entirely different histories.
4ef23a5ec9
...
c60a5e0f12
1 changed files with 39 additions and 51 deletions
|
@ -35,32 +35,20 @@
|
||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button phx-click="edit" phx-value-id={exam.id}
|
||||||
phx-click="edit"
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-3 rounded-md">
|
||||||
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
|
<button phx-click="remove" phx-value-id={exam.id}
|
||||||
phx-click="remove"
|
class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-3 rounded-md">
|
||||||
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
|
<.live_component module={ExmrWeb.ExamLive.FormComponent} id={@exam.id || :new} title={@page_title}
|
||||||
module={ExmrWeb.ExamLive.FormComponent}
|
action={@live_action} exam={@exam} patch={~p"/exams"} />
|
||||||
id={@exam.id || :new}
|
|
||||||
title={@page_title}
|
|
||||||
action={@live_action}
|
|
||||||
exam={@exam}
|
|
||||||
patch={~p"/exams"}
|
|
||||||
/>
|
|
||||||
</.modal>
|
</.modal>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -87,7 +75,7 @@
|
||||||
<%= for day <- 1..Date.days_in_month(@current_month) do %>
|
<%= for day <- 1..Date.days_in_month(@current_month) do %>
|
||||||
<% {:ok, date}=Date.new(@current_month.year, @current_month.month, day) %>
|
<% {:ok, date}=Date.new(@current_month.year, @current_month.month, day) %>
|
||||||
|
|
||||||
<div class={["border rounded p-3 dark:border-zinc-400", @current_month == date && "bg-zinc-200 dark:bg-zinc-800"]}>
|
<div class={["border rounded p-3", @current_month == date && "bg-zinc-800"]}>
|
||||||
<div class="text-sm font-bold">{day}</div>
|
<div class="text-sm font-bold">{day}</div>
|
||||||
|
|
||||||
<!-- Render events for the current day -->
|
<!-- Render events for the current day -->
|
||||||
|
|
Loading…
Reference in a new issue