Show Shift template
<%= if @live_action in [:edit] do %>
<%= live_modal @socket, Shift73kWeb.ShiftTemplateLive.FormComponent,
id: @shift_template.id,
title: @page_title,
action: @live_action,
shift_template: @shift_template,
return_to: Routes.shift_template_show_path(@socket, :show, @shift_template) %>
<% end %>
-
Label:
<%= @shift_template.label %>
-
Subject:
<%= @shift_template.subject %>
-
Description:
<%= @shift_template.description %>
-
Location:
<%= @shift_template.location %>
-
Timezone:
<%= @shift_template.timezone %>
-
Start time:
<%= @shift_template.start_time %>
-
Length hours:
<%= @shift_template.length_hours %>
-
Length minutes:
<%= @shift_template.length_minutes %>
<%= live_patch "Edit", to: Routes.shift_template_show_path(@socket, :edit, @shift_template), class: "button" %>
<%= live_redirect "Back", to: Routes.shift_template_index_path(@socket, :index) %>