Changeset 809 for trunk/grails-app/views/taskDetailed
- Timestamp:
- Feb 16, 2011, 8:10:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskDetailed/show.gsp
r803 r809 524 524 </g:if> 525 525 <g:else> 526 <div class="dialog"> 527 <table> 528 <tbody> 529 530 <tr class="prop"> 531 <td valign="top" class="name">Procedure Id:</td> 532 <td valign="top" class="value"> 533 ${fieldValue(bean:taskProcedureInstance, field:'id')} 534 </td> 535 </tr> 536 537 <tr class="prop"> 538 <td valign="top" class="name">Linked Task:</td> 539 <td valign="top" class="value"> 540 <g:link controller="taskDetailed" 541 action="show" 542 id="${taskProcedureInstance.linkedTask.id}"> 543 ${taskProcedureInstance.linkedTask.encodeAsHTML()} 544 </g:link> 545 </td> 546 </tr> 547 548 <tr class="prop"> 549 <td valign="top" class="name">Linked Asset:</td> 550 <td valign="top" class="value"> 551 <g:render template="/shared/assetTreeCompact" model="['assetInstance': taskProcedureInstance.linkedTask.primaryAsset]" /> 552 </td> 553 </tr> 554 555 <tr class="prop"> 556 <td valign="top" class="name">Version:</td> 557 <td valign="top" class="value"> 558 ${fieldValue(bean:taskProcedureInstance, field:'version')} 559 </td> 560 </tr> 561 562 <tr class="prop"> 563 <td valign="top" class="name">Last Updated:</td> 564 <td valign="top" class="value"> 565 <g:formatDate date="${taskProcedureInstance.lastUpdated}" 566 format="EEE, dd-MMM-yyyy"/> 567 </td> 568 </tr> 569 570 </tbody> 571 </table> 572 </div> 573 <div class="buttons"> 574 <g:form controller="taskProcedureDetailed"> 575 <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> 576 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 577 </g:form> 578 </div> 579 580 <br /> 581 582 <g:if test="${taskProcedureInstance.documentReferences}"> 583 <div class="list"> 584 <table> 585 <thead> 586 <tr> 587 <th>Document Reference</th> 588 <th>Location</th> 589 </tr> 590 </thead> 591 <tbody> 592 <g:each in="${taskProcedureInstance.documentReferences}" status="i" var="docRef"> 593 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 594 595 <td valign="top" class="name"> 596 ${fieldValue(bean:docRef, field:'name')} 597 </td> 598 599 <td valign="top" style="text-align:left;" class="value"> 600 <custom:easyUrl url="${docRef.location}" /> 601 </td> 602 603 </tr> 604 </g:each> 605 606 </tbody> 607 </table> 608 </div> 609 </g:if> 610 611 <br /> 612 613 <div class="list"> 614 <table> 615 <thead> 616 <tr> 617 <th>Step</th> 618 <th>Assembly</th> 619 <th>Description</th> 620 <th>Page Ref</th> 621 <th>Condition</th> 622 </tr> 623 </thead> 624 <tbody> 625 <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> 626 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 627 628 <td valign="top" class="name"> 629 ${fieldValue(bean:maintenanceAction, field:'procedureStepNumber')} 630 </td> 631 632 <td valign="top" style="text-align:left;" class="value"> 633 <g:if test="${maintenanceAction.assetSubItem}"> 634 ${maintenanceAction.assetSubItem.parentItem?.encodeAsHTML()} 635 -- 636 ${maintenanceAction.assetSubItem.encodeAsHTML()} 637 </g:if> 638 </td> 639 640 <td valign="top" style="text-align:left;" class="value"> 641 ${fieldValue(bean:maintenanceAction, field:'description')} 642 </td> 643 644 <td valign="top" style="text-align:left;" class="value"> 645 ${fieldValue(bean:maintenanceAction, field:'pageRef')} 646 </td> 647 648 <td valign="top" style="text-align:left;" class="value"> 649 </td> 650 651 </tr> 652 </g:each> 653 654 </tbody> 655 </table> 656 </div> 657 526 <g:render template="/taskProcedureDetailed/taskProcedureRevision" 527 model="['taskProcedureRevision':taskProcedureRevision]" /> 658 528 </g:else> 659 529
Note: See TracChangeset
for help on using the changeset viewer.