refactor: move expiry date input to a new position in create and edit hunt forms
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s
This commit is contained in:
@@ -34,12 +34,6 @@
|
|||||||
<div class="form-hint">Each package gets a unique QR code and printable card.</div>
|
<div class="form-hint">Each package gets a unique QR code and printable card.</div>
|
||||||
</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">
|
<div class="form-group">
|
||||||
<label for="start_date">Start Date (optional)</label>
|
<label for="start_date">Start Date (optional)</label>
|
||||||
<input type="datetime-local" id="start_date" name="start_date" class="form-control">
|
<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 class="form-hint" style="margin-left: auto;">Keep this hunt secret until the start time.</div>
|
||||||
</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>
|
<button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center;">Create Hunt</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,13 +29,6 @@
|
|||||||
<textarea id="description" name="description" class="form-control" rows="3"><%= hunt.description || '' %></textarea>
|
<textarea id="description" name="description" class="form-control" rows="3"><%= hunt.description || '' %></textarea>
|
||||||
</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>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="start_date">Start Date (optional)</label>
|
<label for="start_date">Start Date (optional)</label>
|
||||||
<input type="datetime-local" id="start_date" name="start_date" class="form-control"
|
<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 class="form-hint" style="margin-left: auto;">Keep this hunt secret until the start time.</div>
|
||||||
</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>
|
<button type="submit" class="btn btn-primary" style="width: 100%; justify-content: center;">Save Changes</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user