Fill status line with space initially
[misc/kostenrechnung] / lib / mask.php
index 72d3b67..ef67f0d 100644 (file)
@@ -48,10 +48,12 @@ function build_form($name, $fields)
     } 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[] = '<span id="form_status"></span>';
+  $ret[] = '<span id="form_status">&nbsp;</span>';
   $ret[] = '<div class="buttons">';
   $ret[] = '<button id="button_save" onclick="return form_save(this);">Speichern</button>';
   $ret[] = '<span></span>';