From 1ad4ac7890228dfd78064f5ef8925e325e9aba29 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 12 Feb 2009 16:19:32 -0500 Subject: [PATCH] metaform: added nice allignment to display page, added proper formatting for checkboxes and dates added hidden div to make html template pass w3c xhtml 1.0 strict validator --- metaform.php | 7 +++++++ metaform/template.html | 17 ++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/metaform.php b/metaform.php index 62ef506..f89e720 100644 --- a/metaform.php +++ b/metaform.php @@ -233,6 +233,13 @@ function make_html($whole_file = true) { } if($GLOBALS['opt_display']) { switch($input) { + case 'checkbox': + case 'leftcheck': + $tem->show('display_yesno'); + break; + case 'date': + $tem->show('display_date'); + break; case 'textarea': $tem->show('display_multiline'); break; diff --git a/metaform/template.html b/metaform/template.html index 2be0fee..de12f03 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -48,13 +48,20 @@

~singular.cap~ details

- -
~caption.html~: ~~~name~.html~~
+ + + + + + + -
~caption.html~:
~~~name~~~
+ + -
~caption.html~:
~~~name~.htmlbrtab~~
+ +
~caption.html~:~~~name~.yesno~~
~caption.html~:~~~name~.mmddyyyy~~
~caption.html~:~~~name~.html~~
~caption.html~:
~~~name~~~
~caption.html~:~~~name~.htmlbrtab~~

Edit

@@ -64,7 +71,7 @@

Add a new ~singular~Edit ~singular~ "~~~always_field~.html~~"~form_name.cap~ form

-
+
-- 1.7.10.4
~caption.html~: ~caption.html~: ~caption.html~: dd/mm/yyyy~caption.html~: ~caption.html~: ~caption.html~:
~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~? ~caption.html~?