feat: make exams on the calendar sortable

This commit is contained in:
Vladimir Rubin 2024-12-25 17:45:18 +02:00
parent 08c8c0f0f7
commit d9f13671d3
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -111,7 +111,11 @@
<%= if Map.has_key?(@events, date) do %> <%= if Map.has_key?(@events, date) do %>
<ul class="text-xs"> <ul class="text-xs">
<%= for event <- @events[date] do %> <%= for event <- @events[date] do %>
<li id={"event-#{event.id}"}>{event.subject}</li> <li id={"event-#{event.id}"}>
<button phx-click="edit" phx-value-id={event.id}>
{event.subject}
</button>
</li>
<% end %> <% end %>
</ul> </ul>
<% end %> <% end %>