%= if @live_action in [:new, :edit, :clone] 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 %> <%= if @delete_shift_template do %> <%= live_modal @socket, Shift73kWeb.ShiftTemplateLive.DeleteComponent, id: @delete_shift_template.id, title: "Delete Shift Template", delete_shift_template: @delete_shift_template %> <% end %>
<%= icon_div @socket, "bi-hourglass", [class: "icon baseline text-muted"] %> Hours: | <%= format_shift_time(template.time_start) %> — <%= format_shift_time(template.time_end) %> Shift length: (<%= format_shift_length(template) %>) TZ: <%= template.time_zone %> |
---|---|
<%= icon_div @socket, "bi-geo", [class: "icon baseline text-muted"] %> Location: | <%= if template.location do %> <%= template.location %> <% else %> none <% end %> |
<%= icon_div @socket, "bi-justify-left", [class: "icon baseline text-muted"] %> Description: | <%= if template.description do %> <%= text_to_html template.description %> <% else %> none <% end %> |