From: Simon Flack <sf@flacks.net>
Date: Mon, 25 Oct 2004 10:24:06 +0000 (+0000)
Subject: Changed CSS buttons to POST buttons
X-Git-Tag: 2.10~101
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0dad0b61598776d7eab84a8c9f25bd3d85bc1198;p=maypole.git

Changed CSS buttons to POST buttons

git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@261 48953598-375a-da11-a14b-00016c27c3ee
---

diff --git a/templates/factory/macros b/templates/factory/macros
index 7aead21..ddd9ffb 100644
--- a/templates/factory/macros
+++ b/templates/factory/macros
@@ -81,8 +81,8 @@ This is a generic button, which performs an action on an object.
 
 #%]
 [% MACRO button(obj, action) BLOCK; %]
-<a class="action" href="[% base %]/[% obj.table %]/[% action %]/[% obj.id %]">
-    [% action %]</a>
+<form class="actionform" action="[% base %]/[% obj.table %]/[% action %]/[% obj.id %]" method=POST>
+    <input id="actionbutton" type="submit" value="[% action %]" /></form>
 [% END %]
 [%#
 
diff --git a/templates/maypole.css b/templates/maypole.css
index 93bdce7..c7697e2 100644
--- a/templates/maypole.css
+++ b/templates/maypole.css
@@ -306,6 +306,25 @@ label .field {
     background-color: #7d95b5;
 }
 
+.actionform {
+    display: inline;
+}
+
+#actionbutton {
+    height: 16px;
+    width: 40px;
+    font-family: sans-serif;
+    font-size: 10px;
+    border: 1px outset;
+    background-color: #fff;
+    margin-bottom: 0px;
+}
+
+#actionbutton:hover {
+    color: #fff;
+    background-color: #7d95b5;
+}
+
 .pager {
     font: 11px Arial, Helvetica, sans-serif;
     text-align: center;