<%= if @live_action in [:new, :edit] do %> <%= live_modal @socket, Shift73kWeb.ShiftTemplateLive.FormComponent, id: @shift_template.id || :new, title: @page_title, action: @live_action, shift_template: @shift_template, current_user: @current_user %> <% end %>

<%= icon_div @socket, "bi-clock-history", [class: "icon baseline"] %> My Shift Templates

<%= live_patch "New Shift Template", to: Routes.shift_template_index_path(@socket, :new), class: "btn btn-primary" %>
<%= for shift <- @shift_templates do %>
<%= shift.subject %>
<%= shift.description %>

huh ok

Card link Another link
<% end %>
<%= for shift <- @shift_templates do %> <% end %>
Subject Description Location Timezone Start time Length
<%= shift.subject %> <%= shift.description %> <%= shift.location %> <%= shift.timezone %> <%= shift.start_time |> Calendar.strftime("%I:%M %p") %> <%= shift.length_hours %>h <%= shift.length_minutes || 0 %>m <%= live_redirect "Show", to: Routes.shift_template_show_path(@socket, :show, shift) %> <%= live_patch "Edit", to: Routes.shift_template_index_path(@socket, :edit, shift) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: shift.id, data: [confirm: "Are you sure?"] %>