From f46623134d6ff4c7c2feab0ae393c99c1bd7c942 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 7 Jul 2019 23:16:25 +0200 Subject: [PATCH] [+] add bool_to_img which return the right HTML_Off_Form img corresponding to Bool value. --- web/widgets/icons_set.anubis | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/widgets/icons_set.anubis b/web/widgets/icons_set.anubis index e7f97a6..5b2cd99 100644 --- a/web/widgets/icons_set.anubis +++ b/web/widgets/icons_set.anubis @@ -7,6 +7,7 @@ */ read web/mime.anubis +read calexium_lib/web/CXM_making_a_web_site.anubis public define String icn16_add = "icons/16x16/add.png". public define String icn16_edit = "icons/16x16/edit.png". @@ -55,4 +56,5 @@ public define String icn32_mime(MIME mimetype) = "icons/32x32/mimetypes/"+mim public define String icn64_mime(String mimetype) = "icons/64x64/mimetypes/"+mimetype+".png". public define String icn64_mime(MIME mimetype) = "icons/64x64/mimetypes/"+mimetype.type+"-"+mimetype.subtype+".png". -public define String to_Icon (Bool value)= if value then icn16_true else icn16_false. +public define String to_Icon (Bool value) = if value then icn16_true else icn16_false. +public define HTML_Off_Form bool_to_img (Bool value) = img(to_Icon(value)). -- libgit2 0.21.4