Listing Shifts

<%= if @live_action in [:new, :edit] do %> <%= live_modal @socket, Shift73kWeb.ShiftLive.FormComponent, id: @shift.id || :new, title: @page_title, action: @live_action, shift: @shift, return_to: Routes.shift_index_path(@socket, :index) %> <% end %> <%= for shift <- @shifts do %> <% end %>
Subject Location Description Time zone Date Time zone Time start Time end
<%= shift.subject %> <%= shift.location %> <%= shift.description %> <%= shift.time_zone %> <%= shift.date %> <%= shift.time_zone %> <%= shift.time_start %> <%= shift.time_end %> <%= live_redirect "Show", to: Routes.shift_show_path(@socket, :show, shift) %> <%= live_patch "Edit", to: Routes.shift_index_path(@socket, :edit, shift) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: shift.id, data: [confirm: "Are you sure?"] %>
<%= live_patch "New Shift", to: Routes.shift_index_path(@socket, :new) %>