summaryrefslogtreecommitdiff
path: root/lib/form.php
diff options
context:
space:
mode:
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
*