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
Hide line numbers
1: {{velocity}} 2: {{html clean="false"}} 3: #set($field = $object.getxWikiClass().get($name)) 4: #set($format = $field.getProperty('dateFormat').value) 5: #set($formattedValue = $escapetool.xml($datetool.format($format, $value))) 6: #if($type == 'edit') 7: #set($discard = $xwiki.jsx.use('AppWithinMinutes.Date')) 8: #set($discard = $xwiki.ssx.use('AppWithinMinutes.Date')) 9: #set($id = $escapetool.xml("${prefix}${name}")) 10: <input type="text" id="$!id" name="$!id" class="datetime t$!value.time" value="$!formattedValue" title="$!escapetool.xml($format)"/> 11: #else 12: $!formattedValue 13: #end 14: {{/html}} 15: {{/velocity}}