From: Jason Woofenden Date: Fri, 13 Feb 2009 04:00:33 +0000 (-0500) Subject: metaform: added pretty-printing for checkboxes and dates to listing X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=48bc8c7ca2448555a225b5996effcc9d41bdcfed metaform: added pretty-printing for checkboxes and dates to listing --- diff --git a/metaform.php b/metaform.php index 06bb7dd..ecde564 100644 --- a/metaform.php +++ b/metaform.php @@ -259,6 +259,11 @@ function make_html($whole_file = true) { $tem->show('opt_display_a_else'); } if(show_in_listing($type, $input, $format, $sql)) { + if($format == 'bool' || $format == 'yesno') { + $tem->set('listing_enc', 'yesno'); + } elseif($input == 'date') { + $tem->set('listing_enc', 'mmddyyyy'); + } $tem->show('listing_head_col'); $tem->show('listing_row_col'); } diff --git a/metaform/template.html b/metaform/template.html index dbb1d8d..8f0890c 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -87,7 +87,7 @@ - +
~caption~
~~~name~.html~~~~~name~.~listing_enc~~~ [delete this ~singular~]