- Timestamp:
- Oct 21, 2009, 6:37:37 PM (15 years ago)
- Location:
- trunk/src/templates/scaffolding
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/scaffolding/Controller.groovy
r131 r158 27 27 if(${propertyName}) { 28 28 try { 29 ${propertyName}.delete( )29 ${propertyName}.delete(flush:true) 30 30 flash.message = "${className} \${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "${className} not found with id \${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/src/templates/scaffolding/create.gsp
r128 r158 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${ createLinkTo(dir:'')}">Home</a></span>11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span> 12 12 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 13 </div> -
trunk/src/templates/scaffolding/edit.gsp
r128 r158 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${ createLinkTo(dir:'')}">Home</a></span>11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span> 12 12 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 13 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span> -
trunk/src/templates/scaffolding/list.gsp
r128 r158 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${ createLinkTo(dir:'')}">Home</a></span>11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span> 12 12 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span> 13 13 </div> -
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 } -
trunk/src/templates/scaffolding/show.gsp
r128 r158 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${ createLinkTo(dir:'')}">Home</a></span>11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span> 12 12 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 13 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span>
Note: See TracChangeset
for help on using the changeset viewer.