From: Jason Date: Fri, 27 Jun 2008 19:29:28 +0000 (-0400) Subject: disabled submit buttons in preview X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=b03e19d7003d71ad02e3d2a737c03c9060f3ed6f disabled submit buttons in preview --- 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; +}