Changeset 178 for trunk/src/templates
- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- Location:
- trunk/src/templates/scaffolding
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/scaffolding/Controller.groovy
r158 r178 67 67 } 68 68 ${propertyName}.properties = params 69 if(!${propertyName}.hasErrors() && ${propertyName}.save( )) {69 if(!${propertyName}.hasErrors() && ${propertyName}.save(flush: true)) { 70 70 flash.message = "${className} \${params.id} updated" 71 71 redirect(action:show,id:${propertyName}.id) … … 89 89 def save = { 90 90 def ${propertyName} = new ${className}(params) 91 if(!${propertyName}.hasErrors() && ${propertyName}.save( )) {91 if(!${propertyName}.hasErrors() && ${propertyName}.save(flush: true)) { 92 92 flash.message = "${className} \${${propertyName}.id} created" 93 93 redirect(action:show,id:${propertyName}.id) -
trunk/src/templates/scaffolding/create.gsp
r158 r178 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create ${className}</title> 7 <title>Create ${className}</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span>12 11 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 12 </div> -
trunk/src/templates/scaffolding/edit.gsp
r158 r178 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span>12 11 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 12 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span> -
trunk/src/templates/scaffolding/list.gsp
r158 r178 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span>12 11 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span> 13 12 </div> -
trunk/src/templates/scaffolding/show.gsp
r158 r178 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><a class="home" href="\${resource(dir:'')}">Home</a></span>12 11 <span class="menuButton"><g:link class="list" action="list">${className} List</g:link></span> 13 12 <span class="menuButton"><g:link class="create" action="create">New ${className}</g:link></span>
Note: See TracChangeset
for help on using the changeset viewer.