Support comments for input fields
[misc/kostenrechnung] / lib / mask.php
index 72d3b67..12a2d38 100644 (file)
@@ -48,6 +48,8 @@ function build_form($name, $fields)
     } elseif ($info['type'] == 'date') {
       error_log('type = date');
     }
     } elseif ($info['type'] == 'date') {
       error_log('type = date');
     }
+    if (array_key_exists('comment',$info))
+      $ret[] = sprintf('<span class="comment">%s</span>', $info['comment']);
     $ret[] = '<br>';
   }
 
     $ret[] = '<br>';
   }