Changeset 131 for trunk/grails-app/views/task
- Timestamp:
- May 8, 2009, 1:01:56 AM (16 years ago)
- Location:
- trunk/grails-app/views/task
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/task/create.gsp
r122 r131 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="description">Description:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> 34 <input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 40 <label for="comment">Comment:</label> 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 43 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 31 49 <label for="targetStartDate">Target Start Date:</label> 32 50 </td> … … 38 56 <tr class="prop"> 39 57 <td valign="top" class="name"> 40 <label for=" description">Description:</label>58 <label for="targetCompletionDate">Target Completion Date:</label> 41 59 </td> 42 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:' description','errors')}">43 < input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/>60 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> 61 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker> 44 62 </td> 45 63 </tr> … … 83 101 <tr class="prop"> 84 102 <td valign="top" class="name"> 85 <label for=" comment">Comment:</label>103 <label for="primaryAsset">Primary Asset:</label> 86 104 </td> 87 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:' comment','errors')}">88 < input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/>105 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 106 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> 89 107 </td> 90 108 </tr> … … 92 110 <tr class="prop"> 93 111 <td valign="top" class="name"> 94 <label for=" primaryAsset">Primary Asset:</label>112 <label for="taskRecurringSchedule">Task Recurring Schedule:</label> 95 113 </td> 96 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 97 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> 114 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskRecurringSchedule','errors')}"> 115 <g:select optionKey="id" from="${TaskRecurringSchedule.list()}" name="taskRecurringSchedule.id" value="${taskInstance?.taskRecurringSchedule?.id}" noSelection="['null':'']"></g:select> 116 </td> 117 </tr> 118 119 <tr class="prop"> 120 <td valign="top" class="name"> 121 <label for="taskProcedure">Task Procedure:</label> 122 </td> 123 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskProcedure','errors')}"> 124 <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${taskInstance?.taskProcedure?.id}" noSelection="['null':'']"></g:select> 98 125 </td> 99 126 </tr> … … 128 155 <tr class="prop"> 129 156 <td valign="top" class="name"> 130 <label for="recurringSchedule">Recurring Schedule:</label>131 </td>132 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'recurringSchedule','errors')}">133 <g:select optionKey="id" from="${RecurringSchedule.list()}" name="recurringSchedule.id" value="${taskInstance?.recurringSchedule?.id}" ></g:select>134 </td>135 </tr>136 137 <tr class="prop">138 <td valign="top" class="name">139 <label for="targetCompletionDate">Target Completion Date:</label>140 </td>141 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}">142 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker>143 </td>144 </tr>145 146 <tr class="prop">147 <td valign="top" class="name">148 157 <label for="taskGroup">Task Group:</label> 149 158 </td> -
trunk/grails-app/views/task/edit.gsp
r122 r131 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="description">Description:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> 37 <input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="comment">Comment:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 46 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 34 52 <label for="targetStartDate">Target Start Date:</label> 35 53 </td> … … 41 59 <tr class="prop"> 42 60 <td valign="top" class="name"> 43 <label for=" description">Description:</label>44 </td> 45 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:' description','errors')}">46 < input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/>61 <label for="targetCompletionDate">Target Completion Date:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> 64 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker> 47 65 </td> 48 66 </tr> … … 86 104 <tr class="prop"> 87 105 <td valign="top" class="name"> 88 <label for="comment">Comment:</label>89 </td>90 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}">91 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/>92 </td>93 </tr>94 95 <tr class="prop">96 <td valign="top" class="name">97 106 <label for="primaryAsset">Primary Asset:</label> 98 107 </td> 99 108 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 100 109 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> 110 </td> 111 </tr> 112 113 <tr class="prop"> 114 <td valign="top" class="name"> 115 <label for="taskRecurringSchedule">Task Recurring Schedule:</label> 116 </td> 117 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskRecurringSchedule','errors')}"> 118 <g:select optionKey="id" from="${TaskRecurringSchedule.list()}" name="taskRecurringSchedule.id" value="${taskInstance?.taskRecurringSchedule?.id}" noSelection="['null':'']"></g:select> 119 </td> 120 </tr> 121 122 <tr class="prop"> 123 <td valign="top" class="name"> 124 <label for="taskProcedure">Task Procedure:</label> 125 </td> 126 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskProcedure','errors')}"> 127 <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${taskInstance?.taskProcedure?.id}" noSelection="['null':'']"></g:select> 101 128 </td> 102 129 </tr> … … 192 219 <tr class="prop"> 193 220 <td valign="top" class="name"> 194 <label for="recurringSchedule">Recurring Schedule:</label>195 </td>196 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'recurringSchedule','errors')}">197 <g:select optionKey="id" from="${RecurringSchedule.list()}" name="recurringSchedule.id" value="${taskInstance?.recurringSchedule?.id}" ></g:select>198 </td>199 </tr>200 201 <tr class="prop">202 <td valign="top" class="name">203 221 <label for="subTasks">Sub Tasks:</label> 204 222 </td> … … 212 230 <g:link controller="task" params="['task.id':taskInstance?.id]" action="create">Add Task</g:link> 213 231 214 </td>215 </tr>216 217 <tr class="prop">218 <td valign="top" class="name">219 <label for="targetCompletionDate">Target Completion Date:</label>220 </td>221 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}">222 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker>223 232 </td> 224 233 </tr> -
trunk/grails-app/views/task/list.gsp
r96 r131 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property="description" title="Description" /> 27 28 <g:sortableColumn property="comment" title="Comment" /> 29 26 30 <g:sortableColumn property="targetStartDate" title="Target Start Date" /> 27 31 28 <g:sortableColumn property=" description" title="Description" />32 <g:sortableColumn property="targetCompletionDate" title="Target Completion Date" /> 29 33 30 34 <th>Lead Person</th> 31 32 <th>Task Priority</th>33 34 <th>Task Status</th>35 35 36 36 </tr> … … 42 42 <td><g:link action="show" id="${taskInstance.id}">${fieldValue(bean:taskInstance, field:'id')}</g:link></td> 43 43 44 <td>${fieldValue(bean:taskInstance, field:'description')}</td> 45 46 <td>${fieldValue(bean:taskInstance, field:'comment')}</td> 47 44 48 <td>${fieldValue(bean:taskInstance, field:'targetStartDate')}</td> 45 49 46 <td>${fieldValue(bean:taskInstance, field:' description')}</td>50 <td>${fieldValue(bean:taskInstance, field:'targetCompletionDate')}</td> 47 51 48 52 <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> 49 50 <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td>51 52 <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td>53 53 54 54 </tr> -
trunk/grails-app/views/task/show.gsp
r122 r131 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Description:</td> 34 35 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Comment:</td> 41 42 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> 43 44 </tr> 45 46 <tr class="prop"> 33 47 <td valign="top" class="name">Target Start Date:</td> 34 48 … … 38 52 39 53 <tr class="prop"> 40 <td valign="top" class="name"> Description:</td>41 42 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:' description')}</td>54 <td valign="top" class="name">Target Completion Date:</td> 55 56 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'targetCompletionDate')}</td> 43 57 44 58 </tr> … … 73 87 74 88 <tr class="prop"> 75 <td valign="top" class="name">Comment:</td>76 77 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td>78 79 </tr>80 81 <tr class="prop">82 89 <td valign="top" class="name">Primary Asset:</td> 83 90 84 91 <td valign="top" class="value"><g:link controller="asset" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> 92 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name">Task Recurring Schedule:</td> 97 98 <td valign="top" class="value"><g:link controller="taskRecurringSchedule" action="show" id="${taskInstance?.taskRecurringSchedule?.id}">${taskInstance?.taskRecurringSchedule?.encodeAsHTML()}</g:link></td> 99 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name">Task Procedure:</td> 104 105 <td valign="top" class="value"><g:link controller="taskProcedure" action="show" id="${taskInstance?.taskProcedure?.id}">${taskInstance?.taskProcedure?.encodeAsHTML()}</g:link></td> 85 106 86 107 </tr> … … 160 181 161 182 <tr class="prop"> 162 <td valign="top" class="name">Recurring Schedule:</td>163 164 <td valign="top" class="value"><g:link controller="recurringSchedule" action="show" id="${taskInstance?.recurringSchedule?.id}">${taskInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td>165 166 </tr>167 168 <tr class="prop">169 183 <td valign="top" class="name">Sub Tasks:</td> 170 184 … … 176 190 </ul> 177 191 </td> 178 179 </tr>180 181 <tr class="prop">182 <td valign="top" class="name">Target Completion Date:</td>183 184 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'targetCompletionDate')}</td>185 192 186 193 </tr>
Note: See TracChangeset
for help on using the changeset viewer.