From 47f694582c8bb668ad711182bc7124fe2db0f339 Mon Sep 17 00:00:00 2001 From: sarven Date: Thu, 15 Jan 2009 03:32:07 +0000 Subject: Updated formData(), formActions(), show() Added formLegend() --- lib/form.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/form.php') 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 * -- cgit v1.2.3-54-g00ecf