General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
AppWithinMinutes
▼
:
Document Index
»
Page:
Date
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
App Within Minutes
»
FormField Class
»
Date
Wiki source code of
Date
Last modified by
Administrator
on 2012/03/21 17:40
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} {{html clean="false"}} #set($field = $object.getxWikiClass().get($name)) #set($format = $field.getProperty('dateFormat').value) #set($formattedValue = $escapetool.xml($datetool.format($format, $value))) #if($type == 'edit') #set($discard = $xwiki.jsx.use('AppWithinMinutes.Date')) #set($discard = $xwiki.ssx.use('AppWithinMinutes.Date')) #set($id = $escapetool.xml("${prefix}${name}")) <input type="text" id="$!id" name="$!id" class="datetime t$!value.time" value="$!formattedValue" title="$!escapetool.xml($format)"/> #else $!formattedValue #end {{/html}} {{/velocity}}