Commit f46623134d6ff4c7c2feab0ae393c99c1bd7c942

Authored by David RENÉ
1 parent 62e20330

[+] add bool_to_img which return the right HTML_Off_Form img corresponding to Bool value.

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
web/widgets/icons_set.anubis
... ... @@ -7,6 +7,7 @@
7 7 */
8 8  
9 9 read web/mime.anubis
  10 +read calexium_lib/web/CXM_making_a_web_site.anubis
10 11  
11 12 public define String icn16_add = "icons/16x16/add.png".
12 13 public define String icn16_edit = "icons/16x16/edit.png".
... ... @@ -55,4 +56,5 @@ public define String icn32_mime(MIME mimetype) = "icons/32x32/mimetypes/"+mim
55 56 public define String icn64_mime(String mimetype) = "icons/64x64/mimetypes/"+mimetype+".png".
56 57 public define String icn64_mime(MIME mimetype) = "icons/64x64/mimetypes/"+mimetype.type+"-"+mimetype.subtype+".png".
57 58  
58   -public define String to_Icon (Bool value)= if value then icn16_true else icn16_false.
  59 +public define String to_Icon (Bool value) = if value then icn16_true else icn16_false.
  60 +public define HTML_Off_Form bool_to_img (Bool value) = img(to_Icon(value)).
... ...