- Timestamp:
- May 31, 2010, 7:02:23 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 edited
- 4 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r508 r556 357 357 [order:91, controller:'personGroupTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 358 358 ] 359 ], 360 [order:200, controller:'taskGroupDetailed', title:'taskProcedure', action:'list', 361 subItems: [ 362 [order:10, controller:'taskGroupDetailed', title:'Task Group List', action:'list', isVisible: { true }], 363 [order:20, controller:'taskGroupDetailed', title:'Create', action:'create', isVisible: { true }], 364 [order:90, controller:'taskGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], 365 [order:91, controller:'taskGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 366 ] 359 367 ] 360 368 ] -
trunk/grails-app/controllers/TaskGroupDetailedController.groovy
r547 r556 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class TaskGroupController extends BaseAppAdminController { 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 4 class TaskGroupDetailedController extends BaseController { 4 5 5 6 def index = { redirect(action:list,params:params) } -
trunk/grails-app/views/taskGroupDetailed/create.gsp
r555 r556 6 6 <meta name="layout" content="main" /> 7 7 <title>Create TaskGroup</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="list" action="list">TaskGroup List</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>Create TaskGroup</h1>15 15 <g:render template="/shared/messages" /> 16 16 <g:hasErrors bean="${taskGroupInstance}"> -
trunk/grails-app/views/taskGroupDetailed/edit.gsp
r555 r556 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit TaskGroup</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">TaskGroup List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New TaskGroup</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit TaskGroup</h1>16 15 <g:render template="/shared/messages" /> 17 16 <g:hasErrors bean="${taskGroupInstance}"> … … 54 53 </tr> 55 54 56 <tr class="prop">57 <td valign="top" class="name">58 <label for="tasks">Tasks:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:taskGroupInstance,field:'tasks','errors')}">61 62 <ul>63 <g:each var="t" in="${taskGroupInstance?.tasks?}">64 <li><g:link controller="task" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>65 </g:each>66 </ul>67 <g:link controller="task" params="['taskGroup.id':taskGroupInstance?.id]" action="create">+Add Task</g:link>68 69 </td>70 </tr>71 72 55 </tbody> 73 56 </table> -
trunk/grails-app/views/taskGroupDetailed/list.gsp
r555 r556 6 6 <meta name="layout" content="main" /> 7 7 <title>TaskGroup List</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="create" action="create">New TaskGroup</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>TaskGroup List</h1>15 15 <g:render template="/shared/messages" /> 16 16 <div class="list"> … … 26 26 27 27 <g:sortableColumn property="isActive" title="Is Active" /> 28 29 <th></th> 28 30 29 31 </tr> … … 31 33 <tbody> 32 34 <g:each in="${taskGroupInstanceList}" status="i" var="taskGroupInstance"> 33 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">35 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> 34 36 35 <td><g:link action="show" id="${taskGroupInstance.id}">${fieldValue(bean:taskGroupInstance, field:'id')}</g:link></td> 37 <td onclick='window.location = "${request.getContextPath()}/taskGroupDetailed/show/${taskGroupInstance.id}"'> 38 ${fieldValue(bean:taskGroupInstance, field:'id')} 39 </td> 36 40 37 <td>${fieldValue(bean:taskGroupInstance, field:'name')}</td> 41 <td onclick='window.location = "${request.getContextPath()}/taskGroupDetailed/show/${taskGroupInstance.id}"'> 42 ${fieldValue(bean:taskGroupInstance, field:'name')} 43 </td> 38 44 39 <td>${fieldValue(bean:taskGroupInstance, field:'description')}</td> 45 <td onclick='window.location = "${request.getContextPath()}/taskGroupDetailed/show/${taskGroupInstance.id}"'> 46 ${fieldValue(bean:taskGroupInstance, field:'description')} 47 </td> 40 48 41 <td>${fieldValue(bean:taskGroupInstance, field:'isActive')}</td> 49 <td onclick='window.location = "${request.getContextPath()}/taskGroupDetailed/show/${taskGroupInstance.id}"'> 50 ${fieldValue(bean:taskGroupInstance, field:'isActive')} 51 </td> 52 53 <td class="notClickable"> 54 <g:link action="show" id="${taskGroupInstance.id}"> 55 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 56 </g:link> 57 </td> 42 58 43 59 </tr> -
trunk/grails-app/views/taskGroupDetailed/show.gsp
r555 r556 6 6 <meta name="layout" content="main" /> 7 7 <title>Show TaskGroup</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">TaskGroup List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New TaskGroup</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show TaskGroup</h1>16 15 <g:render template="/shared/messages" /> 17 16 <div class="dialog"> … … 48 47 </tr> 49 48 50 <tr class="prop">51 <td valign="top" class="name">Tasks:</td>52 53 <td valign="top" style="text-align:left;" class="value">54 <ul>55 <g:each var="t" in="${taskGroupInstance.tasks}">56 <li><g:link controller="task" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>57 </g:each>58 </ul>59 </td>60 61 </tr>62 63 49 </tbody> 64 50 </table>
Note: See TracChangeset
for help on using the changeset viewer.