aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-02 00:35:20 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-02 00:35:20 +0200
commit0e6050122d78ce427715deb0b08ed26fc4af1c5b (patch)
tree7e49a97c3f7aaee6c4d81e26d7a67e315a89b827
parentAdd the sad sad boolean. (diff)
downloadcalp-0e6050122d78ce427715deb0b08ed26fc4af1c5b.tar.gz
calp-0e6050122d78ce427715deb0b08ed26fc4af1c5b.tar.xz
Fix XML double attribute error.
-rw-r--r--module/calp/html/vcomponent.scm14
1 files changed, 6 insertions, 8 deletions
diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm
index 2497aa04..7a4de873 100644
--- a/module/calp/html/vcomponent.scm
+++ b/module/calp/html/vcomponent.scm
@@ -150,18 +150,16 @@
`(input (@ (type "checkbox") (style "display:none")
(name "wholeday"))))
- (input (@ ,@(when (date? start)
- '((style "display:none")))
- (type "time")
+ (input (@ (type "time")
(name "dtstart-end")
- (style "grid-column:3;grid-row:2")
+ (style "grid-column:3;grid-row:2;"
+ ,(when (date? start) "display:none"))
(value ,(time->string (as-time start)))))
- (input (@ ,@(when (date? end)
- '((style "display:none")))
- (type "time")
+ (input (@ (type "time")
(name "dtend-time")
- (style "grid-column:3;grid-row:3")
+ (style "grid-column:3;grid-row:3;"
+ ,(when (date? end) "display:none"))
,@(when end `((value ,(time->string (as-time end)))))
))))