refactor: move expiry date input to a new position in create and edit hunt forms
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s

This commit is contained in:
2026-03-19 14:52:58 -04:00
parent 34b3a4cbd0
commit bd4bf20228
2 changed files with 13 additions and 13 deletions

View File

@@ -34,12 +34,6 @@
<div class="form-hint">Each package gets a unique QR code and printable card.</div>
</div>
<div class="form-group">
<label for="expiry_date">Expiry Date (optional)</label>
<input type="datetime-local" id="expiry_date" name="expiry_date" class="form-control">
<div class="form-hint">Leave blank for no expiry.</div>
</div>
<div class="form-group">
<label for="start_date">Start Date (optional)</label>
<input type="datetime-local" id="start_date" name="start_date" class="form-control">
@@ -52,6 +46,12 @@
<div class="form-hint" style="margin-left: auto;">Keep this hunt secret until the start time.</div>
</div>
<div class="form-group">
<label for="expiry_date">Expiry Date (optional)</label>
<input type="datetime-local" id="expiry_date" name="expiry_date" class="form-control">
<div class="form-hint">Leave blank for no expiry.</div>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center;">Create Hunt</button>
</form>
</div>

View File

@@ -29,13 +29,6 @@
<textarea id="description" name="description" class="form-control" rows="3"><%= hunt.description || '' %></textarea>
</div>
<div class="form-group">
<label for="expiry_date">Expiry Date (optional)</label>
<input type="datetime-local" id="expiry_date" name="expiry_date" class="form-control"
value="<%= hunt.expiry_date ? new Date(hunt.expiry_date).toISOString().slice(0, 16) : '' %>">
<div class="form-hint">Leave blank for no expiry.</div>
</div>
<div class="form-group">
<label for="start_date">Start Date (optional)</label>
<input type="datetime-local" id="start_date" name="start_date" class="form-control"
@@ -49,6 +42,13 @@
<div class="form-hint" style="margin-left: auto;">Keep this hunt secret until the start time.</div>
</div>
<div class="form-group">
<label for="expiry_date">Expiry Date (optional)</label>
<input type="datetime-local" id="expiry_date" name="expiry_date" class="form-control"
value="<%= hunt.expiry_date ? new Date(hunt.expiry_date).toISOString().slice(0, 16) : '' %>">
<div class="form-hint">Leave blank for no expiry.</div>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center;">Save Changes</button>
</form>
</div>