diff options
| author | Marius Peter <dev@marius-peter.com> | 2025-11-22 18:43:16 +0100 |
|---|---|---|
| committer | Marius Peter <dev@marius-peter.com> | 2025-11-22 18:43:16 +0100 |
| commit | 5bfc36807c6b5bcf328c3e7f74d04384632cfd34 (patch) | |
| tree | 1cf44eafbfc4791b36b009b750db4f6dace611e8 /formlets.rkt | |
| parent | 0e23a5aba9497bba1bb758d61f32e7a3c07088a6 (diff) | |
Update date formlet.
Diffstat (limited to 'formlets.rkt')
| -rw-r--r-- | formlets.rkt | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/formlets.rkt b/formlets.rkt index cc89fc0..d96f374 100644 --- a/formlets.rkt +++ b/formlets.rkt @@ -12,13 +12,9 @@ "models/crop-requirement.rkt") (define date-formlet - (formlet ,{=> - (to-string (required (input #:type "date" - #:value (date->iso8601 (today)) - #:attributes - '((class "form-control") [required "required"])))) - date-b} - date-b)) + (to-string (required (input #:type "date" + #:value (date->iso8601 (today)) + #:attributes '((class "form-control") [required "required"]))))) (define (nutrient-value-formlet nutrient) (define id (nutrient-id nutrient)) |