<.link navigate={~p"/maintenance"} class="inline-flex items-center gap-1 text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200" > <.icon name="hero-arrow-left" class="h-4 w-4" /> {t("Back to Maintenance Windows")}

{@page_title}

<.form for={@changeset} phx-change="validate" phx-submit="save" id="maintenance-form" >
<%!-- Name --%>
<%= for {msg, _} <- (@changeset.errors[:name] || []) do %>

{msg}

<% end %>
<%!-- Reason --%>
<%!-- Scope --%>
<%= if @scope_type == "site" do %> <% end %> <%= if @scope_type == "device" do %> <% end %>
<%!-- Time Range --%>
<%= for {msg, _} <- (@changeset.errors[:starts_at] || []) do %>

{msg}

<% end %>
<%= for {msg, _} <- (@changeset.errors[:ends_at] || []) do %>

{msg}

<% end %>
<%!-- Suppress Alerts --%>
<%!-- Recurring --%>
<%!-- Recurrence Rule --%> <%= if Ecto.Changeset.get_field(@changeset, :recurring) == true do %>
<% end %> <%!-- Submit --%>
<.link navigate={~p"/maintenance"} class="rounded-lg px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800 transition-colors" > {t("Cancel")}