Changeset 86
- Timestamp:
- Mar 24, 2009, 3:57:13 PM (16 years ago)
- Location:
- branches/TaskRewrite/src/grails-app/views/taskDetailed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TaskRewrite/src/grails-app/views/taskDetailed/edit.gsp
r85 r86 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for="id">Id:</label> 34 </td> 35 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 33 40 <label for="description">Description:</label> 34 41 </td> 35 42 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> 36 <input type="text" style="width:300px" maxlength="50" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/>43 <input type="text" style="width:450px" maxlength="50" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> 37 44 </td> 38 </tr> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="comment">Comment:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 52 <textarea style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> 53 </td> 54 </tr> 39 55 40 56 <tr class="prop"> … … 43 59 </td> 44 60 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> 45 <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day" 61 <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker> 46 62 </td> 47 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="targetCompletionDate">Target Completion Date:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> 70 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker> 71 </td> 72 </tr> 48 73 49 74 <tr class="prop"> … … 76 101 <tr class="prop"> 77 102 <td valign="top" class="name"> 78 <label for="parentTask">Parent Task:</label>79 </td>80 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}">81 <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select>82 </td>83 </tr>84 85 <tr class="prop">86 <td valign="top" class="name">87 <label for="comment">Comment:</label>88 </td>89 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}">90 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea>91 </td>92 </tr>93 94 <tr class="prop">95 <td valign="top" class="name">96 103 <label for="assignedPersons">Assigned Persons:</label> 97 104 </td> … … 106 113 107 114 </td> 108 </tr> 109 110 <tr class="prop"> 111 <td valign="top" class="name"> 112 <label for="entries">Entries:</label> 113 </td> 114 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'entries','errors')}"> 115 116 <ul> 117 <g:each var="e" in="${taskInstance?.entries?}"> 118 <li><g:link controller="entry" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> 119 </g:each> 120 </ul> 121 <g:link controller="entry" params="['task.id':taskInstance?.id]" action="create">Add Entry</g:link> 122 123 </td> 124 </tr> 115 </tr> 125 116 126 117 <tr class="prop"> … … 149 140 <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> 150 141 </td> 151 </tr> 152 142 </tr> 143 153 144 <tr class="prop"> 154 145 <td valign="top" class="name"> 155 <label for=" modifications">Modifications:</label>146 <label for="parentTask">Parent Task:</label> 156 147 </td> 157 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'modifications','errors')}"> 158 159 <ul> 160 <g:each var="m" in="${taskInstance?.modifications?}"> 161 <li><g:link controller="modification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 162 </g:each> 163 </ul> 164 <g:link controller="modification" params="['task.id':taskInstance?.id]" action="create">Add Modification</g:link> 165 148 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> 149 <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> 166 150 </td> 167 </tr> 168 169 <tr class="prop"> 170 <td valign="top" class="name"> 171 <label for="subTasks">Sub Tasks:</label> 172 </td> 173 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'subTasks','errors')}"> 174 175 <ul> 176 <g:each var="s" in="${taskInstance?.subTasks?}"> 177 <li><g:link controller="task" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 178 </g:each> 179 </ul> 180 <g:link controller="task" params="['task.id':taskInstance?.id]" action="create">Add Task</g:link> 181 182 </td> 183 </tr> 184 185 <tr class="prop"> 186 <td valign="top" class="name"> 187 <label for="targetCompletionDate">Target Completion Date:</label> 188 </td> 189 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> 190 <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker> 191 </td> 192 </tr> 151 </tr> 193 152 194 153 <tr class="prop"> -
branches/TaskRewrite/src/grails-app/views/taskDetailed/show.gsp
r85 r86 121 121 <td valign="top" class="name">Parent Task:</td> 122 122 123 <td valign="top" class="value"><g:link controller="task " action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td>123 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> 124 124 125 125 </tr> … … 131 131 <ul> 132 132 <g:each var="s" in="${taskInstance.subTasks}"> 133 <li><g:link controller="task " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>133 <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 134 134 </g:each> 135 135 </ul>
Note: See TracChangeset
for help on using the changeset viewer.