Edited: Removed colons from labels in habit creation form
This commit is contained in:
parent
9c90710bf3
commit
e0dfc7120f
@ -10,10 +10,10 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<form method="POST" action="/habits/create">
|
<form method="POST" action="/habits/create">
|
||||||
<label for="name">Habit Name:</label>
|
<label for="name">Habit Name</label>
|
||||||
<input type="text" name="name" id="name" required value="<?= htmlspecialchars($_POST['name'] ?? '') ?>">
|
<input type="text" name="name" id="name" required value="<?= htmlspecialchars($_POST['name'] ?? '') ?>">
|
||||||
|
|
||||||
<label for="frequency">Frequency:</label>
|
<label for="frequency">Frequency</label>
|
||||||
<select name="frequency" id="frequency" onchange="toggleCustomFrequency(this.value)">
|
<select name="frequency" id="frequency" onchange="toggleCustomFrequency(this.value)">
|
||||||
<option value="Daily">Daily</option>
|
<option value="Daily">Daily</option>
|
||||||
<option value="Weekly">Weekly</option>
|
<option value="Weekly">Weekly</option>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<div id="custom-frequency" style="display: none;">
|
<div id="custom-frequency" style="display: none;">
|
||||||
<label id="lbl_dow">Days of the Week:</label>
|
<label id="lbl_dow">Days of the Week</label>
|
||||||
<div class="dow_chb_wrapper">
|
<div class="dow_chb_wrapper">
|
||||||
<label for="dow_mon">Monday</label>
|
<label for="dow_mon">Monday</label>
|
||||||
<input type="checkbox" name="days_of_week[]" id="dow_mon" value="1">
|
<input type="checkbox" name="days_of_week[]" id="dow_mon" value="1">
|
||||||
@ -51,10 +51,10 @@
|
|||||||
<input type="checkbox" name="days_of_week[]" id="dow_sun" value="7">
|
<input type="checkbox" name="days_of_week[]" id="dow_sun" value="7">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label for="days_of_month" id="lbl_dom">Days of the Month:</label>
|
<label for="days_of_month" id="lbl_dom">Days of the Month</label>
|
||||||
<input type="text" name="days_of_month" id="days_of_month" placeholder="1,15 (comma-separated)">
|
<input type="text" name="days_of_month" id="days_of_month" placeholder="1,15 (comma-separated)">
|
||||||
|
|
||||||
<label for="months">Months:</label>
|
<label for="months">Months</label>
|
||||||
<input type="text" name="months" id="months" placeholder="1,7,12 (comma-separated)">
|
<input type="text" name="months" id="months" placeholder="1,7,12 (comma-separated)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user