]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/form.php
Updated formData(), formActions(), show()
[quix0rs-gnu-social.git] / lib / form.php
index ba1790faa4111046878e933b6bd5525f43b77327..5c75bb65fa20747a80aeda4f748fda7475ae990c 100644 (file)
@@ -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
      *