diff options
author | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 03:32:07 +0000 |
---|---|---|
committer | sarven <csarven@plantard.controlezvous.ca> | 2009-01-15 03:32:07 +0000 |
commit | 47f694582c8bb668ad711182bc7124fe2db0f339 (patch) | |
tree | de4682a26c75bf01d0835b98d179a8ff3bfc7076 /lib/form.php | |
parent | 901b2acc9f3a9718e3707d69743c26178aff9e8a (diff) |
Updated formData(), formActions(), show()
Added formLegend()
Diffstat (limited to 'lib/form.php')
-rw-r--r-- | lib/form.php | 17 |
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 * |