Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added subsection on special form widgets

  • Loading branch information...
commit 59c5be688dc8afdcbff6883b2726ea965b41a10f 1 parent 2f3e840
@racke racke authored
Showing with 21 additions and 4 deletions.
  1. +21 −4 guides/wellwell.xml
View
25 guides/wellwell.xml
@@ -586,11 +586,28 @@ The elements of a form (part) are stored in the
<database class='field'>widget</database>: Widget to display
</para></listitem>
</itemizedlist>
+
<para>
-The widget is passed by the form_element_field theme function to the
-&tag-display; tag. One exception to that is the widget named
-"<literal>legend</literal>" just displays the label of the form_element.
- </para>
+ The widget is passed by the form_element_field theme function to the
+ &tag-display; tag. Exceptions to that are explained below.
+ </para>
+
+ <sect3>
+ <title>Special Form Widgets</title>
+ <para>
+ A form element with the widget named
+ "<literal>legend</literal>" just displays the label of the
+ form_element.
+ This is useful if you want to separate your form into separate
+ visual parts.
+ </para>
+ <para>
+ Form elements with the widget named "<literal>button</literal>"
+ are used to produce submit buttons.
+ This is useful if you want to have multiple buttons in your
+ form without changing your form template, like Preview or Delete.
+ </para>
+ </sect3>
</section>
<section>
Please sign in to comment.
Something went wrong with that request. Please try again.