From 8977f8cec4ca88f13528792a453eb27328e22845 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 14 Nov 2021 08:49:37 +0000 Subject: Add description to todo --- src/templates/confirm_deletion.php | 2 +- src/templates/form_fields.php | 4 ++++ src/templates/index.php | 2 +- src/templates/view.php | 20 ++++++++++++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/templates/view.php (limited to 'src/templates') diff --git a/src/templates/confirm_deletion.php b/src/templates/confirm_deletion.php index 85cf924..87ddf8a 100644 --- a/src/templates/confirm_deletion.php +++ b/src/templates/confirm_deletion.php @@ -14,7 +14,7 @@ Back
- url | $todo->task | $todo->tag"); ?> + task | $todo->tag"); ?>

Copyright © 2021 David T. Sadler.

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 @@ has('task')) { ?>

get('task'))); ?>

+ +has('description')) { ?> +

get('description'))); ?>

+ has('tag')) { ?>

get('tag'))); ?>

diff --git a/src/templates/index.php b/src/templates/index.php index d309b2c..5abe8b3 100644 --- a/src/templates/index.php +++ b/src/templates/index.php @@ -25,7 +25,7 @@
  1. - task); ?> | tag) { ?>tag); ?> | Edit | Delete + task); ?> | tag) { ?>tag); ?> | Edit | Delete
diff --git a/src/templates/view.php b/src/templates/view.php new file mode 100644 index 0000000..35d4c36 --- /dev/null +++ b/src/templates/view.php @@ -0,0 +1,20 @@ + + + + + + Edit - Todo + + + + +
+

Todo

+

View

+ Back +

task | $todo->tag"); ?>

+

description), false); ?>

+

Copyright © 2021 David T. Sadler.

+
+ + -- cgit v1.2.3-13-gbd6f