Listing Shift templates

<%= 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, return_to: Routes.shift_template_index_path(@socket, :index) %> <% end %> <%= for shift_template <- @shift_templates do %> <% end %>
Label Subject Description Location Timezone Start time Length hours Length minutes
<%= shift_template.label %> <%= shift_template.subject %> <%= shift_template.description %> <%= shift_template.location %> <%= shift_template.timezone %> <%= shift_template.start_time %> <%= shift_template.length_hours %> <%= shift_template.length_minutes %> <%= live_redirect "Show", to: Routes.shift_template_show_path(@socket, :show, shift_template) %> <%= live_patch "Edit", to: Routes.shift_template_index_path(@socket, :edit, shift_template) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: shift_template.id, data: [confirm: "Are you sure?"] %>
<%= live_patch "New Shift template", to: Routes.shift_template_index_path(@socket, :new) %>