%TMPL:DEF{PROMPT:holiday_data}%
%STARTFORM{ name="holiday_data" action="save" topic="Sandbox.FormPluginAndCommentPlugin" anchor="NewData" }% %FORMELEMENT{ name="From" type="date" dateformat="%Y/%m/%d" size="9" title="I am on holidays from:" disabled="on" validate="nonempty" }% %FORMELEMENT{ name="Until" type="date" dateformat="%Y/%m/%d" size="9" title="Until:" disabled="on" }% $From - $Until %FORMELEMENT{ name="addmydates" type="submit" buttonlabel="Add my dates" disabled="on" }% Log in to add your dates %ENDFORM%
%TMPL:END% %TMPL:DEF{OUTPUT:holiday_data}% * - WikiGuest %POS:AFTER%%TMPL:END%

Try it out:

%STARTFORM{ name="holiday_data" action="save" topic="Sandbox.FormPluginAndCommentPlugin" anchor="NewData" }% %FORMELEMENT{ name="From" type="date" dateformat="%Y/%m/%d" size="9" title="I am on holidays from:" disabled="on" validate="nonempty" }% %FORMELEMENT{ name="Until" type="date" dateformat="%Y/%m/%d" size="9" title="Until:" disabled="on" }% $From - $Until %FORMELEMENT{ name="addmydates" type="submit" buttonlabel="Add my dates" disabled="on" }% Log in to add your dates %ENDFORM%
Topic revision: 07 Jun 2011, PhilippLeufke
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads