summaryrefslogtreecommitdiff
path: root/lib/form.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 13:58:32 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 13:58:32 -0500
commit802863907337d6e1b463c28390499017b1d4e5f1 (patch)
treede4682a26c75bf01d0835b98d179a8ff3bfc7076 /lib/form.php
parent4662e22443361b8c0c8a274f2e63b01d69eb07f8 (diff)
parent47f694582c8bb668ad711182bc7124fe2db0f339 (diff)
Merge branch 'uiredesign' of evan@dev.controlyourself.ca:/var/www/csarven into uiredesign
Diffstat (limited to 'lib/form.php')
-rw-r--r--lib/form.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/form.php b/lib/form.php
index ba1790faa..5c75bb65f 100644
--- a/lib/form.php
+++ b/lib/form.php
@@ -67,9 +67,12 @@ class Form extends Widget
array('id' => $this->id(),
'method' => 'POST',
'action' => $this->action()));
+ $this->out->elementStart('fieldset');
+ $this->formLegend();
$this->sessionToken();
$this->formData();
$this->formActions();
+ $this->out->elementEnd('fieldset');
$this->out->elementEnd('form');
}
@@ -84,6 +87,20 @@ class Form extends Widget
$this->out->hidden('token', common_session_token());
}
+
+ /**
+ * Name of the form
+ *
+ * Sub-classes should overload this with the name of their form.
+ *
+ * @return void
+ */
+
+ function formLegend()
+ {
+ }
+
+
/**
* Visible or invisible data elements
*