Changeset 809 for trunk/grails-app/views
- Timestamp:
- Feb 16, 2011, 8:10:39 PM (14 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 2 added
- 4 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 -
trunk/grails-app/views/taskProcedureDetailed/_taskProcedure.gsp
r798 r809 31 31 </tr> 32 32 33 <g:if test="${taskProcedureInstance. version}">33 <g:if test="${taskProcedureInstance.id}"> 34 34 <tr class="prop"> 35 <td valign="top" class="name"> Version:</td>35 <td valign="top" class="name">Revisions:</td> 36 36 <td valign="top" class="value"> 37 ${fieldValue(bean:taskProcedureInstance, field:'version')} 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name">Created By:</td> 43 <td valign="top" class="value"> 44 ${fieldValue(bean:taskProcedureInstance, field:'createdBy')} 45 on 46 <g:formatDate date="${taskProcedureInstance.dateCreated}" format="EEE, dd-MMM-yyyy @ HH:mm"/> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name">Last Updated By:</td> 52 <td valign="top" class="value"> 53 ${fieldValue(bean:taskProcedureInstance, field:'lastUpdatedBy')} 54 on 55 <g:formatDate date="${taskProcedureInstance.lastUpdated}" format="EEE, dd-MMM-yyyy @ HH:mm"/> 37 <ul> 38 <g:each var="r" in="${taskProcedureInstance.revisions}"> 39 <li> 40 <g:link action="show" id="${taskProcedureInstance.id}" params="['revision':r.revision]"> 41 ${r.fullRevisionString.encodeAsHTML()} 42 </g:link> 43 </li> 44 </g:each> 45 </ul> 56 46 </td> 57 47 </tr> -
trunk/grails-app/views/taskProcedureDetailed/edit.gsp
r798 r809 31 31 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 32 32 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 33 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>34 33 </div> 35 34 </g:form> -
trunk/grails-app/views/taskProcedureDetailed/list.gsp
r798 r809 14 14 </div> 15 15 <div class="body"> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 16 <g:render template="/shared/messages" /> 19 17 <filterpane:currentCriteria domainBean="TaskProcedure" 20 18 action="list"
Note: See TracChangeset
for help on using the changeset viewer.