From 48bc8c7ca2448555a225b5996effcc9d41bdcfed Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 12 Feb 2009 23:00:33 -0500 Subject: [PATCH] metaform: added pretty-printing for checkboxes and dates to listing --- metaform.php | 5 +++++ metaform/template.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 @@ - + -- 1.7.10.4
~caption~
~~~name~.html~~~~~name~.~listing_enc~~~ [delete this ~singular~]