Changeset 158 for trunk/src/templates/scaffolding/renderEditor.template
- Timestamp:
- Oct 21, 2009, 6:37:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/scaffolding/renderEditor.template
r128 r158 141 141 142 142 private renderDateEditor(domainClass,property) { 143 def precision = property.type == java.sql.Date ? 'day' : 'minute'; 143 144 if(!cp) { 144 return "<g:datePicker name=\"${property.name}\" value=\"\${${domainInstance}?.${property.name}}\" ></g:datePicker>"145 return "<g:datePicker name=\"${property.name}\" value=\"\${${domainInstance}?.${property.name}}\" precision=\"${precision}\"></g:datePicker>" 145 146 } 146 147 else { … … 155 156 buf << "${k}=\"${v}\" " 156 157 } 157 buf << "name=\"${property.name}\" value=\"\${${domainInstance}?.${property.name}}\" ${renderNoSelection(property)}></g:datePicker>"158 buf << "name=\"${property.name}\" value=\"\${${domainInstance}?.${property.name}}\" precision=\"${precision}\" ${renderNoSelection(property)}></g:datePicker>" 158 159 return buf.toString() 159 160 }
Note: See TracChangeset
for help on using the changeset viewer.