Changeset 601
- Timestamp:
- Jun 20, 2010, 2:28:29 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/i18n/messages.properties
r599 r601 222 222 default.none.text=None 223 223 default.all.text=All 224 default.please.select.text=--Please-Select-- 225 default.none.select.text=--None-- 224 226 225 227 # Rich UI plugin - Calendar -
trunk/grails-app/services/TaskService.groovy
r592 r601 97 97 } 98 98 99 // Default status to "not started" if not supplied.100 params.taskStatus = params.taskStatus ?: TaskStatus.get(1)101 102 // Set budgetStatus.103 if(params.taskType?.id?.toLong() == 1 || params.taskType?.id?.toLong() == 2) // Immediate Callout or Unsheduled Breakin.104 params.taskBudgetStatus = params.taskBudgetStatus ?: TaskBudgetStatus.get(1) // Unplanned.105 else106 params.taskBudgetStatus = params.taskBudgetStatus ?: TaskBudgetStatus.get(2) // Planned.107 108 99 def taskInstance = new Task(params) 109 100 result.taskInstance = taskInstance 101 102 // Set taskStatus if not supplied. 103 if(!params.taskStatus) 104 taskInstance.taskStatus = TaskStatus.read(1) // Not Started 105 106 // Set budgetStatus if not supplied. 107 if(!params.taskBudgetStatus) { 108 if(taskInstance.taskType?.id == 1 || taskInstance.taskType?.id == 2) // Immediate Callout or Unsheduled Breakin. 109 taskInstance.taskBudgetStatus = TaskBudgetStatus.read(1) // Unplanned. 110 else 111 taskInstance.taskBudgetStatus = TaskBudgetStatus.read(2) // Planned. 112 } 110 113 111 114 if(result.taskInstance.parentTask?.trash) -
trunk/grails-app/views/taskDetailed/create.gsp
r592 r601 87 87 name="primaryAsset.id" 88 88 value="${taskInstance?.primaryAsset?.id}" 89 noSelection="['null': '--None--']">89 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 90 90 </g:select> 91 91 <g:helpBalloon code="task.primaryAsset" /> … … 101 101 from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 102 102 size="5" multiple="yes" optionKey="id" 103 value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']" > 103 value="${taskInstance?.associatedAssets?.id}" 104 noSelection="['':/${g.message(code:'default.none.select.text')}/]"> 104 105 </g:select> 105 106 <g:helpBalloon code="task.associatedAssets" /> … … 128 129 from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 129 130 name="taskGroup.id" 130 value="${taskInstance?.taskGroup?.id}" noSelection="['':'--None--']" > 131 value="${taskInstance?.taskGroup?.id}" 132 noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> 131 133 </g:select> 132 134 </td> … … 141 143 from="${scheduledTaskTypes}" 142 144 name="taskType.id" 143 value="${taskInstance?.taskType?.id}" > 145 value="${taskInstance?.taskType?.id}" 146 noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> 144 147 </g:select> 145 148 </td> -
trunk/grails-app/views/taskDetailed/createImmediateCallout.gsp
r487 r601 66 66 from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 67 67 name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" 68 noSelection="['null': '--None--']">68 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 69 69 </g:select> 70 70 <g:helpBalloon code="task.primaryAsset" /> … … 81 81 name="entryFault.productionReference.id" 82 82 value="${entryFaultInstance?.productionReference?.id}" 83 noSelection="['null': '--None--']">83 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 84 84 </g:select> 85 85 <g:helpBalloon code="entry.productionReference.fault" /> -
trunk/grails-app/views/taskDetailed/createUnscheduled.gsp
r592 r601 89 89 name="primaryAsset.id" 90 90 value="${taskInstance?.primaryAsset?.id}" 91 noSelection="['null':'--None--']"></g:select> 91 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 92 </g:select> 92 93 <g:helpBalloon code="task.primaryAsset" /> 93 94 </td> … … 115 116 from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 116 117 name="taskGroup.id" 117 value="${taskInstance?.taskGroup?.id}" noSelection="['':'--None--']" > 118 value="${taskInstance?.taskGroup?.id}" 119 noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> 118 120 </g:select> 119 121 </td> -
trunk/grails-app/views/taskDetailed/edit.gsp
r592 r601 103 103 name="primaryAsset.id" 104 104 value="${taskInstance?.primaryAsset?.id}" 105 noSelection="['null': '--None--']">105 noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> 106 106 </g:select> 107 107 <g:helpBalloon code="task.primaryAsset" /> … … 119 119 optionKey="id" size="5" multiple="yes" 120 120 value="${taskInstance?.associatedAssets.id}" 121 noSelection="['': '--None--']" >121 noSelection="['':/${g.message(code:'default.none.select.text')}/]" > 122 122 </g:select> 123 123 <g:helpBalloon class="helpballoon" code="task.associatedAssets" />
Note: See TracChangeset
for help on using the changeset viewer.