summaryrefslogtreecommitdiff
path: root/src/templates/form_fields.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-11-14 08:49:37 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-11-14 08:49:37 +0000
commit8977f8cec4ca88f13528792a453eb27328e22845 (patch)
tree3479e7c7a3cec0a0ca923ea3c134d7243797b19d /src/templates/form_fields.php
parent3226a642822a15e6cf937d3f0ec20fdf71651ea4 (diff)
Add description to todo
Diffstat (limited to 'src/templates/form_fields.php')
-rw-r--r--src/templates/form_fields.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/templates/form_fields.php b/src/templates/form_fields.php
index 505cf26..3b58adb 100644
--- a/src/templates/form_fields.php
+++ b/src/templates/form_fields.php
@@ -2,6 +2,10 @@
<?php if ($errors->has('task')) { ?>
<p><?= htmlentities(implode(', ', $errors->get('task'))); ?></p>
<?php } ?>
+<label>Description<textarea name="description" maxlength="512" rows="8"><?= htmlspecialchars($old->get('description', $todo->description)); ?></textarea></label>
+<?php if ($errors->has('description')) { ?>
+ <p><?= htmlentities(implode(', ', $errors->get('description'))); ?></p>
+<?php } ?>
<label>Tag<input type="text" name="tag" maxlength="16" value="<?= htmlspecialchars($old->get('tag', $todo->tag)); ?>"></label>
<?php if ($errors->has('tag')) { ?>
<p><?= htmlentities(implode(', ', $errors->get('tag'))); ?></p>