Changeset 418 for trunk/grails-app/views/taskDetailed/show.gsp
- Timestamp:
- Feb 28, 2010, 7:13:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskDetailed/show.gsp
r410 r418 12 12 </div> 13 13 <div class="body"> 14 <g:if test="${flash.message}"> 15 <div class="message">${flash.message}</div> 16 </g:if> 14 <g:render template="/shared/messages" /> 17 15 <g:if test="${taskInstance.trash}" > 18 16 <div class="errors"> 19 This task is in the trash bin, but can be restored if required.17 <ul><li>This task is in the trash bin, but can be restored if required.<li><ul> 20 18 </div> 21 19 </g:if> … … 26 24 </g:hasErrors> 27 25 26 <div class="tabHeader"> 27 <h1 class="taskHeader"> 28 Task #${taskInstance.id} 29 <g:if test="${taskInstance.attentionFlag}" > 30 <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Flag" /> 31 </g:if> 32 <g:if test="${taskInstance.taskStatus.id == 3}" > 33 <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Flag" /> 34 </g:if> 35 </h1> 36 ${fieldValue(bean:taskInstance, field:'description')} 37 </div> 38 39 <br/> 40 28 41 <richui:tabView id="tabView"> 29 42 30 43 <richui:tabLabels> 31 <richui:tabLabel selected="${showTab.task}" title=" Task #${taskInstance.id}" />44 <richui:tabLabel selected="${showTab.task}" title="Details" /> 32 45 <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> 33 46 <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> … … 53 66 </tr> 54 67 </g:if> 55 56 <tr class="prop">57 <td valign="top" class="name">Description:</td>58 59 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td>60 61 </tr>62 68 63 69 <tr class="prop"> … … 224 230 225 231 <g:if test="${taskInstance.taskStatus.id != 3}" > 226 <span class="button"><g:actionSubmit class="complete" value="Complete" /></span> 232 233 <g:if test="${taskInstance.attentionFlag}" > 234 <span class="button"><g:actionSubmit class="flag" value="Clear" action="clearAttentionFlag"/></span> 235 </g:if> 236 <g:else> 237 <span class="button"><g:actionSubmit class="flag" value="Unresolved" action="setAttentionFlag"/></span> 238 </g:else> 239 240 <span class="button"><g:actionSubmit class="complete" value="Resolved" action="complete"/></span> 227 241 228 242 <g:if test="${taskInstance.approved}" > … … 259 273 <th>Comment</th> 260 274 <th>Date Done</th> 261 <th>D uration</th>275 <th>Down Time</th> 262 276 <th>Entered By</th> 263 277 <th></th> … … 292 306 <span class="button"> 293 307 <g:actionSubmit value="Add Fault" action="create" class="add"/> 308 </span> 309 </g:form> 310 </div> 311 312 <br /> 313 314 <g:if test="${entryCauseList.isEmpty()}"> 315 <h1>No Causes</h1> 316 <br /> 317 </g:if> 318 <g:else> 319 <div class="list"> 320 <h1>Causes</h1> 321 <table> 322 <thead> 323 <tr> 324 <th>Comment</th> 325 <th>Date Done</th> 326 <th>Entered By</th> 327 <th></th> 328 </tr> 329 </thead> 330 <tbody> 331 <g:each in="${entryCauseList}" status="i" var="entry"> 332 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 333 334 <td style="width:65%">${entry.comment}</td> 335 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> 336 <td>${entry.enteredBy}</td> 337 338 <td> 339 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> 340 <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> 341 </g:link> 342 </td> 343 344 </tr> 345 </g:each> 346 </tbody> 347 </table> 348 </div> 349 </g:else> 350 351 <div class="buttons"> 352 <g:form controller="entryDetailed"> 353 <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> 354 <g:hiddenField name="entryType.id" value="2" /> 355 <span class="button"> 356 <g:actionSubmit value="Add Cause" action="create" class="add"/> 294 357 </span> 295 358 </g:form> … … 340 403 <g:form controller="entryDetailed"> 341 404 <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> 342 <g:hiddenField name="entryType.id" value=" 2" />405 <g:hiddenField name="entryType.id" value="3" /> 343 406 <span class="button"> 344 407 <g:actionSubmit value="Add Work Done" action="create" class="add"/> … … 687 750 </richui:tabView> 688 751 689 </div> 752 </div> <!--body--> 690 753 </body> 691 754 </html>
Note: See TracChangeset
for help on using the changeset viewer.