From 7b6c6ac8d6c1f53b85491ee455f2402da1d149ba Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 19 Sep 2011 22:57:39 -0400 Subject: [PATCH] metaform: simplify code (form msg, cancel dest) --- metaform/style.less | 2 +- metaform/template.html | 6 +++--- metaform/template.php | 5 ----- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/metaform/style.less b/metaform/style.less index 65eeea9..a21b367 100644 --- a/metaform/style.less +++ b/metaform/style.less @@ -27,7 +27,7 @@ body { #centerer { position: relative; background: @nav-color; - margin: 0 auto; + margin: 15 auto; width: @site-width; -moz-box-shadow: 2px 2px 15px #777; -webkit-box-shadow: 2px 2px 15px #777; diff --git a/metaform/template.html b/metaform/template.html index 3629541..d60f62e 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -55,9 +55,9 @@ -

Add a new ~singular~Edit ~singular~ "~~~always_field~ html~~"Submit a ~singular~

+

Add a new ~singular~Edit ~singular~ "~~~always_field~ html~~"Submit a ~singular~

-
+
~caption html~ @@ -104,7 +104,7 @@
 
- + diff --git a/metaform/template.php b/metaform/template.php index 79d018c..4e8d49f 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -151,12 +151,7 @@ function ~file_name~_main_form($id = false) {~pulldowns {~ pulldown('~name~', ~pulldown_options~);~}~~has_pulldowns {~ ~}~~opt_db {~ if($id) { - # add hidden field for database id of row we're editing tem_set('id', $id); - tem_set('editing'); - tem_set('edit_msg'); - } else { - tem_set('new_msg'); } ~}~ if(isset($_POST['~always_field~'])) { -- 1.7.10.4