<%- include("partials/header", { title: "Enable Preset", user }) %>

<h1>Enable Preset</h1>
<p><b><%= preset.title %></b> — <%= preset.topic %></p>

<% if (error) { %>
  <p class="err"><%= error %></p>
<% } %>

<form method="post" action="/presets/<%= preset.id %>/enable" class="card">
  <label>Start (Melbourne time)</label>
  <input name="start_local" type="datetime-local" required />

  <label>End (Melbourne time)</label>
  <input name="end_local" type="datetime-local" required />

  <button type="submit">Enable & Schedule</button>
</form>

<%- include("partials/footer") %>
