summaryrefslogtreecommitdiff
path: root/src/templates/form_fields.php
diff options
context:
space:
mode:
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>