- Timestamp:
- Oct 27, 2009, 8:33:04 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Task.groovy
r147 r168 5 5 TaskPriority taskPriority 6 6 TaskType taskType 7 Task 7 Task parentTask 8 8 Person leadPerson 9 9 Asset primaryAsset -
trunk/grails-app/i18n/messages.properties
r166 r168 105 105 navigation.nav.inventory=Inventory 106 106 navigation.nav.assets=Assets 107 108 # FilterPane plugin, properties. 109 fp.property.text.associatedAssets.name=Associated Asset 110 fp.property.text.primaryAsset.name=Primary Asset 111 fp.property.text.isActive=Active 112 fp.property.text.isScheduled=Scheduled 113 fp.property.text.isApproved=Approved 114 fp.property.text.taskGroup.name=Group 115 fp.property.text.taskPriority.name=Priority 116 fp.property.text.taskStatus.name=Status 117 fp.property.text.description=Description 118 fp.property.text.comment=Comment 119 fp.property.text.leadPerson.lastName=Lead Person (Last Name) 120 fp.property.text.leadPerson.firstName=Lead Person (First Name) 121 fp.property.text.taskType.name=Type 122 -
trunk/grails-app/views/person/create.gsp
r166 r168 102 102 </td> 103 103 <td valign="top" class="value ${hasErrors(bean:person,field:'department','errors')}"> 104 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${person?.department?.id}" noSelection="['null':' ']"></g:select>104 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${person?.department?.id}" noSelection="['null':'--None--']"></g:select> 105 105 </td> 106 106 </tr> -
trunk/grails-app/views/person/edit.gsp
r166 r168 109 109 </td> 110 110 <td valign="top" class="value ${hasErrors(bean:person,field:'department','errors')}"> 111 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${person?.department?.id}" noSelection="['null':' ']"></g:select>111 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${person?.department?.id}" noSelection="['null':'--None--']"></g:select> 112 112 </td> 113 113 </tr> -
trunk/grails-app/views/taskDetailed/create.gsp
r145 r168 64 64 <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> 65 65 </td> 66 </tr> 66 </tr> 67 67 68 68 <tr class="prop"> … … 74 74 <g:helpBalloon code="task.leadPerson" /> 75 75 </td> 76 </tr> 76 </tr> 77 78 <tr class="prop"> 79 <td valign="top" class="name"> 80 <label for="primaryAsset">Primary Asset:</label> 81 </td> 82 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 83 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select> 84 <g:helpBalloon code="task.primaryAsset" /> 85 </td> 86 </tr> 87 88 <tr class="prop"> 89 <td valign="top" class="name"> 90 <label for="associatedAssets">Associated Assets:</label> 91 </td> 92 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> 93 <g:select id="associatedAssets" name="associatedAssets" 94 from="${Asset.list()}" 95 size="5" multiple="yes" optionKey="id" 96 value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']"/> 97 <g:helpBalloon code="task.associatedAssets" /> 98 </td> 99 </tr> 77 100 78 101 <tr class="prop"> … … 126 149 </td> 127 150 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> 128 <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':' ']"></g:select>151 <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'--None--']"></g:select> 129 152 </td> 130 153 </tr> -
trunk/grails-app/views/taskDetailed/edit.gsp
r147 r168 78 78 <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> 79 79 </td> 80 </tr> 80 </tr> 81 82 <tr class="prop"> 83 <td valign="top" class="name"> 84 <label for="primaryAsset">Primary Asset:</label> 85 </td> 86 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 87 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select> 88 <g:helpBalloon code="task.primaryAsset" /> 89 </td> 90 </tr> 91 92 <tr class="prop"> 93 <td valign="top" class="name"> 94 <label for="associatedAssets">Associated Assets:</label> 95 </td> 96 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> 97 <g:select id="associatedAssets" name="associatedAssets" 98 from="${Asset.list()}" 99 optionKey="id" size="5" multiple="yes" 100 value="${taskInstance?.associatedAssets.id}" noSelection="['':'--None--']"/> 101 <g:helpBalloon class="helpballoon" code="task.associatedAssets" /> 102 </td> 103 </tr> 81 104 82 105 <tr class="prop"> … … 130 153 </td> 131 154 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> 132 <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':' ']"></g:select>155 <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'--None--']"></g:select> 133 156 </td> 134 157 </tr> -
trunk/grails-app/views/taskDetailed/search.gsp
r155 r168 95 95 class="overlayPane" 96 96 additionalProperties="id" 97 associatedProperties="leadPerson.lastName, taskGroup.name, taskPriority.name" 97 associatedProperties="taskPriority.name, 98 leadPerson.lastName, 99 leadPerson.firstName, 100 taskGroup.name, 101 associatedAssets.name, 102 primaryAsset.name, 103 taskStatus.name, 104 taskType.name" 98 105 filterPropertyValues="${['taskPriority.name':[values:TaskPriority.list()], 99 'leadPerson.lastName':[values:Person.executeQuery('select t.lastName from Person t')], 106 'leadPerson.lastName':[values:Person.executeQuery('select distinct t.lastName from Person t')], 107 'leadPerson.firstName':[values:Person.executeQuery('select distinct t.firstName from Person t')], 100 108 'taskGroup.name':[values:TaskGroup.list()], 109 'associatedAssets.name':[values:Asset.list()], 110 'primaryAsset.name':[values:Asset.list()], 111 'taskStatus.name':[values:TaskStatus.list()], 112 'taskType.name':[values:TaskType.list()], 101 113 targetCompletionDate:[years:2020..2000,precision:'day'], 102 targetStartDate:[years:2020..2000,precision:'day']]}"/> 114 targetStartDate:[years:2020..2000,precision:'day'] 115 ]}"/> 103 116 </div> <!-- end body --> 104 117 -
trunk/grails-app/views/taskDetailed/show.gsp
r153 r168 83 83 84 84 <tr class="prop"> 85 <td valign="top" class="name">Primary Asset:</td> 86 87 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> 88 89 </tr> 90 91 <tr class="prop"> 92 <td valign="top" class="name">Associated Assets:</td> 93 94 <td valign="top" style="text-align:left;" class="value"> 95 <ul> 96 <g:each var="a" in="${taskInstance.associatedAssets}"> 97 <li>${a?.encodeAsHTML()}</li> 98 </g:each> 99 </ul> 100 </td> 101 102 </tr> 103 104 <tr class="prop"> 85 105 <td valign="top" class="name">Task Priority:</td> 86 106
Note: See TracChangeset
for help on using the changeset viewer.