From: <de...@de...> - 2016-08-31 04:14:20
|
Author: PeterThoeny Date: 2016-08-31 04:13:32 +0000 (Wed, 31 Aug 2016) New Revision: 30251 Trac url: http://develop.twiki.org/trac/changeset/30251 Modified: twiki/branches/TWikiRelease06x00/core/data/TWiki/VarEDITFORMFIELD.txt Log: Item7754: EDITFORMFIELD variable with textarea support - updating docs - syn to 6.0 branch Modified: twiki/branches/TWikiRelease06x00/core/data/TWiki/VarEDITFORMFIELD.txt =================================================================== --- twiki/branches/TWikiRelease06x00/core/data/TWiki/VarEDITFORMFIELD.txt 2016-08-31 04:08:07 UTC (rev 30250) +++ twiki/branches/TWikiRelease06x00/core/data/TWiki/VarEDITFORMFIELD.txt 2016-08-31 04:13:32 UTC (rev 30251) @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="TWikiContributor" date="1387611915" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="TWikiContributor" date="1472616704" format="1.1" version="$Rev$"}% %META:TOPICPARENT{name="TWikiVariables"}% #VarEDITFORMFIELD ---+++ EDITFORMFIELD{"fieldname" form=""} -- render an input field specified in a form template topic @@ -16,7 +16,7 @@ | =value="..."= | Initial value of input field. If omitted and if =topic="..."= is specified, the value is taken from the named form field. | =""= | | =type="start"= | Special case: Start an HTML form. Parameters: %BR% ="form" type="start" action="save" topic="..." method="" onsubmit="" onreset=""= %BB% =action=: Specify a [[TWikiScripts][TWiki script]] (=view=, =edit=, =save=, ...), or a full action URL, default ="view"=. %BB% =topic=: Specify topic name or =Web.TopicName=, default current topic; ignored if full action URL is provided. %BB% =method=: HTML form action method, default ="post"= for save action, else ="get"=. %BB% =onsubmit=: Execute !JavaScript when the form is submitted, optional. %BB% =onreset=: Execute !JavaScript when the reset button is clicked, optional. | =""= | | =type="end"= | Special case: End an HTML form. Parameters: %BR% ="form" type="end"= | =""= | - | =type="..."= | Special case: Create an input field regardless of the type defined in the !TWikiForm. Used mainly for hidden fields and submit button. The nameless parameter is the field name. Supported types: %BB% ="fieldname" type="hidden" value="..."= - hidden input field. %BB% ="fieldname" type="submit" value="..."= - submit button, =value= is button label. %BB% ="fieldname" type="button" value="..." onclick="..."= - regular button, =value= is button label. %BB% ="fieldname" type="text" value="..." size="80"= - text input field. %BB% ="fieldname" type="checkbox" value="..." text="..."= - checkbox, =text= is display text. %BB% ="fieldname" type="radio" value="..." text="..."= - radio button, =text= is display text. %BB% In addition, any valid XHML and HTML5 input type is supported, such as =type="date"=, =type="file"=, =type="image"=. %BR% Additional type-specific parameters can be supplied, such as =alt=""=, =checked="checked"=, =class=""=, =max=""=, =min=""=, =sr! c=""=, =style=""=, =width=""=. Consult HTML documentation. | =""= | + | =type="..."= | Special case: Create an input field regardless of the type defined in the !TWikiForm. Used mainly for hidden fields and submit button. The nameless parameter is the field name. Supported types: %BB% ="fieldname" type="hidden" value="..."= - hidden input field. %BB% ="fieldname" type="submit" value="..."= - submit button, =value= is button label. %BB% ="fieldname" type="button" value="..." onclick="..."= - regular button, =value= is button label. %BB% ="fieldname" type="text" value="..." size="80"= - text input field. %BB% ="fieldname" type="textarea" value="..." size="80x6"= - multi line text area field, =size= denotes columns x rows. %BB% ="fieldname" type="checkbox" value="..." text="..."= - checkbox, =text= is display text. %BB% ="fieldname" type="radio" value="..." text="..."= - radio button, =text= is display text. %BB% In addition, any valid XHML and HTML5 input type is supported, such as =type="date"=, =type="file"=, =type="image"=. %BR% Additio! nal type-specific parameters can be supplied, such as =alt="..."=, =checked="checked"=, =class="..."=, =max="..."=, =min="..."=, =placeholder="..."=, =src="..."=, =style="..."=, =width="..."=. Consult HTML documentation. | =""= | * Example: =%<nop>EDITFORMFIELD{ "ReleaseType" form="PackageForm" value="Beta-1" }%= * Example: Custom form in an included header to update some values of the base topic %BR% =%<nop>EDITFORMFIELD{ "form" type="start" action="save" topic="%<nop>BASEWEB%.%<nop>BASETOPIC%" method="post" }%= |