Commits

Anonymous committed 8af25dc

Form view: don't render caption heading at all if `view-caption' returns NIL.

  • Participants
  • Parent commits 9b6f0d5

Comments (0)

Files changed (1)

src/views/formview/formview.lisp

     (let ((form-body
 	   (let ((*weblocks-output-stream* (make-string-output-stream)))
 	     (with-html
-	       (:h1 (fmt (view-caption view)
-			 (humanize-name (object-class-name obj))))
+               (awhen (view-caption view)
+                 (htm (:h1 (fmt (view-caption view) (humanize-name (object-class-name obj))))))
 	       (render-validation-summary view obj widget validation-errors)
 	       (:h2 :class "form-fields-title" "Form fields:")
 	       (safe-apply fields-prefix-fn view obj args)