From b03e19d7003d71ad02e3d2a737c03c9060f3ed6f Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 27 Jun 2008 15:29:28 -0400 Subject: [PATCH] disabled submit buttons in preview --- metaform.php | 1 + metaform/preview.html | 2 +- metaform/style.css | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/metaform.php b/metaform.php index 63c1c6e..ab4b305 100644 --- a/metaform.php +++ b/metaform.php @@ -408,6 +408,7 @@ function preview() { } $preview = $preview_tem->run(); unset($preview_tem); + $preview = ereg_replace('type="submit"', 'type="submit" disabled="disabled"', $preview); tem_set('preview', $preview); set_form_action(); tem_output(); diff --git a/metaform/preview.html b/metaform/preview.html index 762aeef..60dbc81 100644 --- a/metaform/preview.html +++ b/metaform/preview.html @@ -8,7 +8,7 @@
-

This grey thing is a preview. It will NOT work. Don't click button(s) in it

+

PREVIEW

~preview~

diff --git a/metaform/style.css b/metaform/style.css index 006ccab..df624aa 100644 --- a/metaform/style.css +++ b/metaform/style.css @@ -16,3 +16,8 @@ div.error { margin: 20px; background: #fdd; } + +.first { + padding-top: 0px; + margin-top: 0px; +} -- 1.7.10.4