cvs: smarty / NEWS /docs designers.sgml
| From: | Messju Mohr | Date: | Tue, 18 Mar 2003 09:20:15 +0000 |
| Subject: | cvs: smarty / NEWS /docs designers.sgml | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-472@lists.php.net to get a copy of this message | ||
messju Tue Mar 18 04:20:15 2003 EDT
Modified files:
/smarty NEWS
/smarty/docs designers.sgml
Log:
updated docs for html_checkboxes, html_options and html_radios
Index: smarty/NEWS
diff -u smarty/NEWS:1.315 smarty/NEWS:1.316
--- smarty/NEWS:1.315 Tue Mar 18 03:59:00 2003
+++ smarty/NEWS Tue Mar 18 04:20:15 2003
@@ -1,3 +1,5 @@
+ - updated docs for html_checkboxes, html_options and html_radios (messju)
+ - fixed wrong default "name" attribute for html_options (messju)
- html_checkboxes now expect the options as attribute "options" instead
of "checkboxes. html_radios expect "options" instead of "radios".
cleaned up indentiation (messju)
Index: smarty/docs/designers.sgml
diff -u smarty/docs/designers.sgml:1.57 smarty/docs/designers.sgml:1.58
--- smarty/docs/designers.sgml:1.57 Thu Mar 6 18:37:24 2003
+++ smarty/docs/designers.sgml Tue Mar 18 04:20:15 2003
@@ -3479,14 +3479,14 @@
<row>
<entry>values</entry>
<entry>array</entry>
- <entry>Yes, unless using checkboxes attribute</entry>
+ <entry>Yes, unless using options attribute</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>an array of values for checkbox buttons</entry>
</row>
<row>
<entry>output</entry>
<entry>array</entry>
- <entry>Yes, unless using checkboxes attribute</entry>
+ <entry>Yes, unless using options attribute</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>an array of output for checkbox buttons</entry>
</row>
@@ -3498,7 +3498,7 @@
<entry>the checked checkbox element</entry>
</row>
<row>
- <entry>checkboxes</entry>
+ <entry>options</entry>
<entry>associative array</entry>
<entry>Yes, unless using values and output</entry>
<entry><emphasis>n/a</emphasis></entry>
@@ -3518,9 +3518,13 @@
html_checkboxes is a custom function that creates an html checkbox
group with provided data. It takes care of which item(s) are
selected by default as well. Required attributes are values and
- output, unless you use checkboxes instead. All output is XHTML
+ output, unless you use options instead. All output is XHTML
compatible.
</para>
+ <para>
+ All parameters that are not in the list above are printed as
+ name/value-pairs inside each of the created <input>-tags.
+ </para
<example>
<title>html_checkboxes</title>
<programlisting>
@@ -3747,6 +3751,11 @@
<select name="groupname"></select> tags will enclose
the option list. Otherwise only the option list is generated.
</para>
+ <para>
+ All parameters that are not in the list above are printed as
+ name/value-pairs inside the <select>-tag. They are ignored if
+ the optional <emphasis>name</emphasis> is not given.
+ </para
<example>
<title>html_options</title>
<programlisting>
@@ -3825,14 +3834,14 @@
<row>
<entry>values</entry>
<entry>array</entry>
- <entry>Yes, unless using radios attribute</entry>
+ <entry>Yes, unless using options attribute</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>an array of values for radio buttons</entry>
</row>
<row>
<entry>output</entry>
<entry>array</entry>
- <entry>Yes, unless using radios attribute</entry>
+ <entry>Yes, unless using options attribute</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>an array of output for radio buttons</entry>
</row>
@@ -3844,7 +3853,7 @@
<entry>the checked radio element</entry>
</row>
<row>
- <entry>radios</entry>
+ <entry>options</entry>
<entry>associative array</entry>
<entry>Yes, unless using values and output</entry>
<entry><emphasis>n/a</emphasis></entry>
@@ -3864,8 +3873,13 @@
html_radios is a custom function that creates html radio button
group with provided data. It takes care of which item is selected
by default as well. Required attributes are values and output,
- unless you use radios instead. All output is XHTML compatible.
+ unless you use options instead. All output is XHTML compatible.
</para>
+ <para>
+ All parameters that are not in the list above are printed as
+ name/value-pairs inside each of the created <input>-tags.
+ </para
+
<example>
<title>html_radios</title>
<programlisting>