%= 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 %>
Label | Subject | Description | Location | Timezone | Start time | Length | |
---|---|---|---|---|---|---|---|
<%= shift_template.label %> | <%= shift_template.subject %> | <%= shift_template.description %> | <%= shift_template.location %> | <%= shift_template.timezone %> | <%= shift_template.start_time |> Calendar.strftime("%I:%M %p") %> | <%= shift_template.length_hours %>h <%= shift_template.length_minutes || 0 %>m | <%= 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?"] %> |