Changeset 124
- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 44 edited
- 12 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r122 r124 282 282 leadPerson:Person.get(3), 283 283 description:"Check specific level sensor", 284 comment:"Has been noted as problematic, try recal librating")284 comment:"Has been noted as problematic, try recalibrating.") 285 285 BootStrapSaveAndTest(taskInstance) 286 286 … … 418 418 BootStrapSaveAndTest(recurringScheduleInstance) 419 419 420 //RecurringSchedule #2 421 recurringScheduleInstance = new RecurringSchedule(recurEvery: 1, 422 period: Period.get(2), 423 task: Task.get(2)) 424 BootStrapSaveAndTest(recurringScheduleInstance) 425 420 426 /************************* 421 427 START OF INVENTORY … … 423 429 424 430 //InventoryStore 425 def inventoryStoreInstance 431 def inventoryStoreInstance 426 432 427 433 inventoryStoreInstance = new InventoryStore(site: Site.get(1), name: "Store #1") … … 561 567 562 568 //MaintenancePolicy 563 def maintenancePolicyInstance 569 def maintenancePolicyInstance 564 570 565 571 //MaintenancePolicy #1 566 572 maintenancePolicyInstance = new MaintenancePolicy(name: "Fixed Time") 573 BootStrapSaveAndTest(maintenancePolicyInstance) 574 575 //MaintenancePolicy #2 576 maintenancePolicyInstance = new MaintenancePolicy(name: "Condition Based Online") 577 BootStrapSaveAndTest(maintenancePolicyInstance) 578 579 //MaintenancePolicy #3 580 maintenancePolicyInstance = new MaintenancePolicy(name: "Condition Based Offline") 581 BootStrapSaveAndTest(maintenancePolicyInstance) 582 583 //MaintenancePolicy #4 584 maintenancePolicyInstance = new MaintenancePolicy(name: "Design Out") 585 BootStrapSaveAndTest(maintenancePolicyInstance) 586 587 //MaintenancePolicy #5 588 maintenancePolicyInstance = new MaintenancePolicy(name: "Operate To Failure") 567 589 BootStrapSaveAndTest(maintenancePolicyInstance) 568 590 … … 575 597 BootStrapSaveAndTest(plannedMaintenanceInstance) 576 598 599 //PM #2 600 plannedMaintenanceInstance = new PlannedMaintenance(name: "PM2", 601 recurringSchedule: RecurringSchedule.get(1)) 602 BootStrapSaveAndTest(plannedMaintenanceInstance) 603 577 604 //MaintenanceAction 578 605 def maintenanceActionInstance 579 606 580 maintenanceActionInstance = new MaintenanceAction(description: "Do this", 607 //MaintenanceAction #1 608 maintenanceActionInstance = new MaintenanceAction(maintenanceAction: "Check all E-stops, active E-stop S1-S12 and ensure machine cannot run", 609 pmStepNumber: 1, 610 maintenancePolicy: MaintenancePolicy.get(1), 611 plannedMaintenance: PlannedMaintenance.get(1)) 612 BootStrapSaveAndTest(maintenanceActionInstance) 613 614 //MaintenanceAction #2 615 maintenanceActionInstance = new MaintenanceAction(maintenanceAction: "Do more pushups", 616 pmStepNumber: 2, 617 maintenancePolicy: MaintenancePolicy.get(1), 618 plannedMaintenance: PlannedMaintenance.get(1)) 619 BootStrapSaveAndTest(maintenanceActionInstance) 620 621 //MaintenanceAction #3 622 maintenanceActionInstance = new MaintenanceAction(maintenanceAction: "Ok just one more pushup", 623 pmStepNumber: 3, 581 624 maintenancePolicy: MaintenancePolicy.get(1), 582 625 plannedMaintenance: PlannedMaintenance.get(1)) … … 584 627 585 628 //SystemSection 586 def systemSectionInstance 587 629 def systemSectionInstance 630 631 //SystemSection #1 588 632 systemSectionInstance = new SystemSection(name: "Press Section", 589 633 site: Site.get(1)) 590 634 BootStrapSaveAndTest(systemSectionInstance) 591 635 636 //SystemSection #2 637 systemSectionInstance = new SystemSection(name: "RO System", 638 site: Site.get(2)) 639 BootStrapSaveAndTest(systemSectionInstance) 640 641 //SystemSection #3 642 systemSectionInstance = new SystemSection(name: "Auxilliray Section", 643 site: Site.get(1)) 644 BootStrapSaveAndTest(systemSectionInstance) 645 592 646 //AssetType 593 647 def assetTypeInstance 594 648 595 649 //AssetType #1 596 assetTypeInstance = new AssetType(name: "Folder")597 BootStrapSaveAndTest(assetTypeInstance)598 599 //AssetType #2600 650 assetTypeInstance = new AssetType(name: "Print Unit") 601 651 BootStrapSaveAndTest(assetTypeInstance) 602 652 603 //AssetExtendedAttributeType 604 def assetExtendedAttributeInstanceType 605 606 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Model Number") 607 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 608 609 //AssetExtendedAttribute 610 def assetExtendedAttributeInstance 611 612 //AssetExtendedAttribute #1 613 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "mark 2", 614 assetType: AssetType.get(1), 615 assetExtendedAttributeType: AssetExtendedAttributeType.get(1)) 616 BootStrapSaveAndTest(assetExtendedAttributeInstance) 653 //AssetType #2 654 assetTypeInstance = new AssetType(name: "Reactor Tower") 655 BootStrapSaveAndTest(assetTypeInstance) 617 656 618 657 //Assembly … … 620 659 621 660 //Assembly #1 622 assemblyInstance = new Assembly(name: " Delivery Belts")661 assemblyInstance = new Assembly(name: "Print Couple") 623 662 BootStrapSaveAndTest(assemblyInstance) 624 663 // assemblyInstance.addToMaintenanceActions(MaintenanceAction.get(1)) 625 664 626 665 //Assembly #2 627 assemblyInstance = new Assembly(name: " Print Couple",666 assemblyInstance = new Assembly(name: "Agitator", 628 667 lifeplan: LifePlan.get(1)) 629 668 BootStrapSaveAndTest(assemblyInstance) … … 633 672 634 673 //SubAssembly #1 635 subAssemblyInstance = new SubAssembly(name: "C entre Belt")674 subAssemblyInstance = new SubAssembly(name: "Cylinder") 636 675 BootStrapSaveAndTest(subAssemblyInstance) 637 676 638 677 //SubAssembly #2 639 subAssemblyInstance = new SubAssembly(name: " Form Roller")678 subAssemblyInstance = new SubAssembly(name: "Gearmotor") 640 679 BootStrapSaveAndTest(subAssemblyInstance) 641 680 … … 651 690 BootStrapSaveAndTest(componentItemInstance) 652 691 653 654 692 //Asset 655 693 def assetInstance 656 694 657 695 //Asset #1 696 assetInstance = new Asset(name: "Print Unit 22", 697 assetType: AssetType.get(1), 698 systemSection: SystemSection.get(1)) 699 BootStrapSaveAndTest(assetInstance) 700 // assetInstance.addToMaintenanceActions(MaintenanceAction.get(1)) 701 702 //Asset #2 703 assetInstance = new Asset(name: "Print Unit 21", 704 assetType: AssetType.get(1), 705 systemSection: SystemSection.get(1)) 706 BootStrapSaveAndTest(assetInstance) 707 708 //Asset #3 658 709 assetInstance = new Asset(name: "Print Unit 23", 659 710 assetType: AssetType.get(1), … … 661 712 BootStrapSaveAndTest(assetInstance) 662 713 663 //Finally did it all work. 714 //Asset #4 715 assetInstance = new Asset(name: "RO 1", 716 assetType: AssetType.get(2), 717 systemSection: SystemSection.get(2)) 718 BootStrapSaveAndTest(assetInstance) 719 720 //AssetExtendedAttributeType 721 def assetExtendedAttributeInstanceType 722 723 //AssetExtendedAttributeType #1 724 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Model Number") 725 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 726 727 //AssetExtendedAttributeType #2 728 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Purchase Cost") 729 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 730 731 //AssetExtendedAttributeType #3 732 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Serial Number") 733 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 734 735 //AssetExtendedAttributeType #4 736 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Manufactured Date") 737 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 738 739 //AssetExtendedAttributeType #5 740 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Location Description") 741 BootStrapSaveAndTest(assetExtendedAttributeInstanceType) 742 743 //AssetExtendedAttribute 744 def assetExtendedAttributeInstance 745 746 //AssetExtendedAttribute #1 747 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2", 748 asset: Asset.get(1), 749 assetExtendedAttributeType: AssetExtendedAttributeType.get(1)) 750 BootStrapSaveAndTest(assetExtendedAttributeInstance) 751 752 //AssetExtendedAttribute #2 753 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5", 754 asset: Asset.get(1), 755 assetExtendedAttributeType: AssetExtendedAttributeType.get(5)) 756 BootStrapSaveAndTest(assetExtendedAttributeInstance) 757 758 /************************* 759 Finally did it all work. 760 **************************/ 664 761 if(BootStrapDemoDataSuccessful) { 665 762 println "BootStrapping demo data...successful." … … 668 765 } 669 766 670 //Call this function instead of .save() 767 /**************************************** 768 Call this function instead of .save() 769 *****************************************/ 671 770 void BootStrapSaveAndTest(object) { 672 771 if(!object.save()) { -
trunk/grails-app/controllers/AssetDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class Asset Controller extends BaseAppAdminController {3 class AssetDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } -
trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class AssetExtendedAttribute Controller extends BaseAppAdminController {3 class AssetExtendedAttributeDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } -
trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class MaintenanceAction Controller extends BaseAppAdminController {3 class MaintenanceActionDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 82 82 83 83 def create = { 84 def maintenanceActionInstance = new MaintenanceAction() 85 maintenanceActionInstance.properties = params 86 return ['maintenanceActionInstance':maintenanceActionInstance] 84 try { 85 def plannedMaintenanceInstance = PlannedMaintenance.get(params.plannedMaintenanceInstance.id) 86 def maintenanceActionInstance = new MaintenanceAction() 87 maintenanceActionInstance.plannedMaintenance = plannedMaintenanceInstance 88 return ['maintenanceActionInstance':maintenanceActionInstance] 89 } 90 catch(Exception e) { 91 flash.message = "Please select a PlannedMaintenance, then 'Add action'" 92 redirect(controller:"plannedMaintenanceDetailed", action:"list") 93 } 87 94 } 88 95 … … 91 98 if(!maintenanceActionInstance.hasErrors() && maintenanceActionInstance.save()) { 92 99 flash.message = "MaintenanceAction ${maintenanceActionInstance.id} created" 93 redirect( action:show,id:maintenanceActionInstance.id)100 redirect(controller:"plannedMaintenanceDetailed", action:"show", id: params.plannedMaintenance.id) 94 101 } 95 102 else { -
trunk/grails-app/controllers/PlannedMaintenanceDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class PlannedMaintenance Controller extends BaseAppAdminController {3 class PlannedMaintenanceDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 14 14 15 15 def show = { 16 // Use this to return a list of the maintenanceActions 17 // def list = { 18 // params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 19 // [ maintenanceActionInstanceList: MaintenanceAction.list( params ), maintenanceActionInstanceTotal: MaintenanceAction.count() ] 20 // } 16 21 def plannedMaintenanceInstance = PlannedMaintenance.get( params.id ) 17 22 -
trunk/grails-app/controllers/RecurringScheduleDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class RecurringSchedule Controller extends BaseAppAdminController {3 class RecurringScheduleDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } -
trunk/grails-app/controllers/SystemSectionDetailedController.groovy
r122 r124 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class SystemSection Controller extends BaseAppAdminController {3 class SystemSectionDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } -
trunk/grails-app/controllers/TaskDetailedController.groovy
r106 r124 8 8 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 9 9 10 // def list = { 11 // params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 // def taskInstanceActives = Task.findAllByIsActive( true ).list( params ) 13 // // def taskInstanceList = taskInstanceActives.list( params ) 14 // return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceActives.count() ] 15 // } 16 10 17 def list = { 11 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 def taskInstanceList = Task.findAllByIsActive( true ) 13 return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.count() ] 19 [ taskInstanceList: Task.list( params ), taskInstanceTotal: Task.count() ] 14 20 } 15 21 -
trunk/grails-app/domain/Asset.groovy
r122 r124 8 8 boolean isActive = true 9 9 10 static hasMany = [maintenanceActions: MaintenanceAction ]10 static hasMany = [maintenanceActions: MaintenanceAction, assetExtendedAttributes: AssetExtendedAttribute] 11 11 12 12 static belongsTo = [SystemSection, AssetType] 13 13 14 // static constraints = { 15 // } 14 static constraints = { 15 name(unique:true) 16 } 16 17 17 18 String toString() { -
trunk/grails-app/domain/AssetExtendedAttribute.groovy
r122 r124 1 1 class AssetExtendedAttribute { 2 2 3 Asset Type assetType3 Asset asset 4 4 AssetExtendedAttributeType assetExtendedAttributeType 5 5 … … 9 9 // static hasMany = [] 10 10 11 static belongsTo = [Asset Type]11 static belongsTo = [Asset] 12 12 13 13 // static constraints = { … … 16 16 17 17 String toString() { 18 "${ this.value}"18 "${assetExtendedAttributeType.name}: ${this.value}" 19 19 } 20 20 } -
trunk/grails-app/domain/AssetType.groovy
r122 r124 6 6 7 7 static hasMany = [assets: Asset, 8 assemblies: Assembly, 9 assetExtendedAttributes: AssetExtendedAttribute, 8 assemblies: Assembly, 10 9 maintenanceActions: MaintenanceAction] 11 10 -
trunk/grails-app/domain/MaintenanceAction.groovy
r122 r124 8 8 SubAssembly subAssembly 9 9 ComponentItem componentItem 10 String description10 String maintenanceAction 11 11 String reasoning = "" 12 Integer pmStepNumber 12 13 boolean isActive = true 13 14 … … 23 24 subAssembly(blank:true, nullable:true) 24 25 componentItem(blank:true, nullable:true) 26 pmStepNumber(blank:true, nullable:true) 25 27 } 26 28 27 29 String toString() { 28 "${this. description}"30 "${this.action}" 29 31 } 30 32 } -
trunk/grails-app/domain/RecurringSchedule.groovy
r123 r124 21 21 } 22 22 23 //String toString() {24 // "${this.name}"25 //}23 String toString() { 24 "Recur every ${recurEvery} ${period}" 25 } 26 26 } 27 27 -
trunk/grails-app/views/appCore/home.gsp
r116 r124 10 10 <span class="menuButton"><g:link class="list" controller="taskDetailed" action="list">Tasks</g:link></span> 11 11 <span class="menuButton"><g:link class="list" controller="inventoryItemDetailed" action="list">Inventory</g:link></span> 12 <span class="menuButton"><g:link class="list" controller="assetDetailed" action="list">Assets</g:link></span> 12 13 13 14 </div> -
trunk/grails-app/views/asset/edit.gsp
r122 r124 29 29 <table> 30 30 <tbody> 31 32 <tr class="prop"> 33 <td valign="top" class="name"> 34 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetExtendedAttributes','errors')}"> 37 38 <ul> 39 <g:each var="a" in="${assetInstance?.assetExtendedAttributes?}"> 40 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 </g:each> 42 </ul> 43 <g:link controller="assetExtendedAttribute" params="['asset.id':assetInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 44 45 </td> 46 </tr> 31 47 32 48 <tr class="prop"> -
trunk/grails-app/views/asset/show.gsp
r122 r124 27 27 28 28 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> 29 30 </tr> 31 32 <tr class="prop"> 33 <td valign="top" class="name">Asset Extended Attributes:</td> 34 35 <td valign="top" style="text-align:left;" class="value"> 36 <ul> 37 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 38 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 </g:each> 40 </ul> 41 </td> 29 42 30 43 </tr> -
trunk/grails-app/views/assetDetailed/create.gsp
r122 r124 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="name">Name:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 34 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 31 40 <label for="assetType">Asset Type:</label> 32 41 </td> 33 42 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 34 43 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="systemSection">System Section:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 52 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 35 53 </td> 36 54 </tr> … … 53 71 </td> 54 72 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="name">Name:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 61 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="systemSection">System Section:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 70 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 71 </td> 72 </tr> 73 73 74 74 </tbody> 75 75 </table> -
trunk/grails-app/views/assetDetailed/edit.gsp
r122 r124 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="name">Name:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 37 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 34 43 <label for="assetType">Asset Type:</label> 35 44 </td> 36 45 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 37 46 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 52 <label for="systemSection">System Section:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 55 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 38 56 </td> 39 57 </tr> … … 45 63 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 46 64 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 70 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 71 </td> 72 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetExtendedAttributes','errors')}"> 73 74 <ul> 75 <g:each var="a" in="${assetInstance?.assetExtendedAttributes?}"> 76 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 77 </g:each> 78 </ul> 79 <g:link controller="assetExtendedAttributeDetailed" params="['asset.id':assetInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 80 47 81 </td> 48 82 </tr> … … 65 99 <ul> 66 100 <g:each var="m" in="${assetInstance?.maintenanceActions?}"> 67 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>101 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 68 102 </g:each> 69 103 </ul> 70 <g:link controller="maintenanceAction " params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link>104 <g:link controller="maintenanceActionDetailed" params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link> 71 105 72 </td>73 </tr>74 75 <tr class="prop">76 <td valign="top" class="name">77 <label for="name">Name:</label>78 </td>79 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">80 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>81 </td>82 </tr>83 84 <tr class="prop">85 <td valign="top" class="name">86 <label for="systemSection">System Section:</label>87 </td>88 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">89 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>90 106 </td> 91 107 </tr> -
trunk/grails-app/views/assetDetailed/list.gsp
r122 r124 23 23 24 24 <g:sortableColumn property="id" title="Id" /> 25 26 <g:sortableColumn property="name" title="Name" /> 27 28 <g:sortableColumn property="assetType" title="Asset Type" /> 25 29 26 <th>Asset Type</th> 27 28 <g:sortableColumn property="description" title="Description" /> 29 30 <g:sortableColumn property="isActive" title="Is Active" /> 31 32 <g:sortableColumn property="name" title="Name" /> 33 34 <th>System Section</th> 30 <g:sortableColumn property="systemSection" title="System Section" /> 31 32 <g:sortableColumn property="isActive" title="Is Active" /> 33 34 <th></th> 35 35 36 36 </tr> … … 38 38 <tbody> 39 39 <g:each in="${assetInstanceList}" status="i" var="assetInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> 41 41 42 <td><g:link action="show" id="${assetInstance.id}">${fieldValue(bean:assetInstance, field:'id')}</g:link></td> 43 42 <td>${fieldValue(bean:assetInstance, field:'id')}</td> 43 44 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 45 44 46 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> 45 46 <td>${fieldValue(bean:assetInstance, field:' description')}</td>47 47 48 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 49 48 50 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 50 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 51 52 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 51 52 <td> 53 <g:link action="show" id="${assetInstance.id}"> 54 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 55 </g:link> 56 </td> 53 57 54 58 </tr> -
trunk/grails-app/views/assetDetailed/show.gsp
r122 r124 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Name:</td> 34 35 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 33 40 <td valign="top" class="name">Asset Type:</td> 34 41 35 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td> 42 <td valign="top" class="value"> 43 ${assetInstance?.assetType?.encodeAsHTML()} 44 <ul> 45 <g:each var="a" in="${assetInstance.assetType.assemblies}"> 46 <li> 47 ${a?.encodeAsHTML()} 48 <ul> 49 <g:each var="s" in="${a.subAssemblies}"> 50 <li>${s?.encodeAsHTML()}</li> 51 </g:each> 52 </ul> 53 </li> 54 </g:each> 55 </ul> 56 </td> 57 58 </tr> 59 60 <tr class="prop"> 61 <td valign="top" class="name">System Section:</td> 62 63 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td> 36 64 37 65 </tr> … … 41 69 42 70 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 71 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name">Asset Extended Attributes:</td> 76 77 <td valign="top" style="text-align:left;" class="value"> 78 <ul> 79 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 80 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 81 </g:each> 82 </ul> 83 </td> 43 84 44 85 </tr> … … 57 98 <ul> 58 99 <g:each var="m" in="${assetInstance.maintenanceActions}"> 59 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>100 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 60 101 </g:each> 61 102 </ul> 62 103 </td> 63 64 </tr>65 66 <tr class="prop">67 <td valign="top" class="name">Name:</td>68 69 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td>70 71 </tr>72 73 <tr class="prop">74 <td valign="top" class="name">System Section:</td>75 76 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>77 104 78 105 </tr> -
trunk/grails-app/views/assetExtendedAttribute/create.gsp
r122 r124 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="asset ExtendedAttributeType">Asset Extended Attribute Type:</label>31 <label for="asset">Asset:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset ExtendedAttributeType','errors')}">34 <g:select optionKey="id" from="${Asset ExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>33 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 34 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 35 35 </td> 36 36 </tr> … … 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="asset Type">AssetType:</label>40 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">43 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 43 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 44 44 </td> 45 45 </tr> -
trunk/grails-app/views/assetExtendedAttribute/edit.gsp
r122 r124 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="asset ExtendedAttributeType">Asset Extended Attribute Type:</label>34 <label for="asset">Asset:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset ExtendedAttributeType','errors')}">37 <g:select optionKey="id" from="${Asset ExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>36 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 37 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 38 38 </td> 39 39 </tr> … … 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="asset Type">AssetType:</label>43 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 44 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">46 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 46 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 47 47 </td> 48 48 </tr> -
trunk/grails-app/views/assetExtendedAttribute/list.gsp
r122 r124 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Asset</th> 27 26 28 <th>Asset Extended Attribute Type</th> 27 28 <th>Asset Type</th>29 29 30 30 <g:sortableColumn property="isActive" title="Is Active" /> … … 40 40 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> 41 41 42 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 43 42 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 43 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetType')}</td>45 45 46 46 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> -
trunk/grails-app/views/assetExtendedAttribute/show.gsp
r122 r124 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Asset Extended Attribute Type:</td>33 <td valign="top" class="name">Asset:</td> 34 34 35 <td valign="top" class="value"><g:link controller="asset ExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Asset Type:</td>40 <td valign="top" class="name">Asset Extended Attribute Type:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${assetExtendedAttributeInstance?.assetType?.id}">${assetExtendedAttributeInstance?.assetType?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/create.gsp
r122 r124 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="asset Type">Asset Type:</label>40 <label for="asset">Asset:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">43 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 43 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 44 44 </td> 45 45 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/edit.gsp
r122 r124 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="asset Type">Asset Type:</label>43 <label for="asset">Asset:</label> 44 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">46 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 46 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 47 47 </td> 48 48 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/list.gsp
r122 r124 26 26 <th>Asset Extended Attribute Type</th> 27 27 28 <th>Asset Type</th>28 <th>Asset</th> 29 29 30 30 <g:sortableColumn property="isActive" title="Is Active" /> 31 31 32 32 <g:sortableColumn property="value" title="Value" /> 33 34 <th></th> 33 35 34 36 </tr> … … 36 38 <tbody> 37 39 <g:each in="${assetExtendedAttributeInstanceList}" status="i" var="assetExtendedAttributeInstance"> 38 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetExtendedAttributeDetailed/show/${assetExtendedAttributeInstance.id}"'/> 41 39 42 40 43 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> … … 42 45 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 43 46 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset Type')}</td>47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 45 48 46 49 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> 47 50 48 51 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 52 53 <td> 54 <g:link action="show" id="${assetExtendedAttributeInstance.id}"> 55 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 56 </g:link> 57 </td> 49 58 50 59 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">Asset Extended Attribute Type:</td> 34 34 35 <td valign="top" class="value"> <g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Asset Type:</td>40 <td valign="top" class="name">Asset:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${assetExtendedAttributeInstance?.assetType?.id}">${assetExtendedAttributeInstance?.assetType?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> -
trunk/grails-app/views/assetType/edit.gsp
r122 r124 39 39 size="5" multiple="yes" optionKey="id" 40 40 value="${assetTypeInstance?.assemblies}" /> 41 42 </td>43 </tr>44 45 <tr class="prop">46 <td valign="top" class="name">47 <label for="assetExtendedAttributes">Asset Extended Attributes:</label>48 </td>49 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assetExtendedAttributes','errors')}">50 51 <ul>52 <g:each var="a" in="${assetTypeInstance?.assetExtendedAttributes?}">53 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>54 </g:each>55 </ul>56 <g:link controller="assetExtendedAttribute" params="['assetType.id':assetTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link>57 41 58 42 </td> -
trunk/grails-app/views/assetType/show.gsp
r122 r124 37 37 <g:each var="a" in="${assetTypeInstance.assemblies}"> 38 38 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 </g:each>40 </ul>41 </td>42 43 </tr>44 45 <tr class="prop">46 <td valign="top" class="name">Asset Extended Attributes:</td>47 48 <td valign="top" style="text-align:left;" class="value">49 <ul>50 <g:each var="a" in="${assetTypeInstance.assetExtendedAttributes}">51 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>52 39 </g:each> 53 40 </ul> -
trunk/grails-app/views/inventoryItemDetailed/list.gsp
r116 r124 28 28 <g:sortableColumn property="description" title="Description" /> 29 29 30 <g:sortableColumn property="reorderPoint" title="Reorder Point" />31 32 30 <g:sortableColumn property="enableReorder" title="Enable Reorder" /> 33 31 34 32 <g:sortableColumn property="isActive" title="Is Active" /> 33 34 <th></th> 35 35 36 36 </tr> … … 38 38 <tbody> 39 39 <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"'/> 41 41 42 <td> <g:link action="show" id="${inventoryItemInstance.id}">${fieldValue(bean:inventoryItemInstance, field:'id')}</g:link></td>42 <td>${fieldValue(bean:inventoryItemInstance, field:'id')}</td> 43 43 44 44 <td>${fieldValue(bean:inventoryItemInstance, field:'name')}</td> … … 46 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 47 47 48 <td>${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td>49 50 48 <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td> 51 49 52 50 <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> 51 52 <td> 53 <g:link action="show" id="${inventoryItemInstance.id}"> 54 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 55 </g:link> 56 </td> 53 57 54 58 </tr> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r116 r124 166 166 <ul> 167 167 <g:each var="s" in="${inventoryItemInstance.spareFor}"> 168 <li><g:link controller="asset " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>168 <li><g:link controller="assetDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 169 169 </g:each> 170 170 </ul> -
trunk/grails-app/views/login/auth.gsp
r114 r124 46 46 <div id='login'> 47 47 <h1>Welcome to gnuMims please log in</h1> 48 The demo users are <b> manager</b> and <b>user</b> bothhaving the password: <b>pass</b>48 The demo users are <b>user</b>, <b>manager</b> and <b>admin</b> all having the password: <b>pass</b> 49 49 50 50 <div class='inner'> -
trunk/grails-app/views/maintenanceAction/create.gsp
r122 r124 23 23 </g:hasErrors> 24 24 <g:form action="save" method="post" > 25 <g:hiddenField name="plannedMaintenance.id" value="${maintenanceActionInstance.plannedMaintenance.id}" /> 25 26 <div class="dialog"> 26 27 <table> … … 83 84 <tr class="prop"> 84 85 <td valign="top" class="name"> 85 <label for=" description">Description:</label>86 <label for="pmStepNumber">Pm Step Number:</label> 86 87 </td> 87 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">88 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>88 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 89 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}" /> 89 90 </td> 90 91 </tr> … … 96 97 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 97 98 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 99 </td> 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name"> 104 <label for="maintenanceAction">Maintenance Action:</label> 105 </td> 106 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 107 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 98 108 </td> 99 109 </tr> -
trunk/grails-app/views/maintenanceAction/edit.gsp
r122 r124 86 86 <tr class="prop"> 87 87 <td valign="top" class="name"> 88 <label for=" description">Description:</label>88 <label for="pmStepNumber">Pm Step Number:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">91 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 91 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}" /> 92 92 </td> 93 93 </tr> … … 99 99 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 100 100 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 101 </td> 102 </tr> 103 104 <tr class="prop"> 105 <td valign="top" class="name"> 106 <label for="maintenanceAction">Maintenance Action:</label> 107 </td> 108 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 109 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 101 110 </td> 102 111 </tr> -
trunk/grails-app/views/maintenanceAction/show.gsp
r122 r124 73 73 74 74 <tr class="prop"> 75 <td valign="top" class="name"> Description:</td>75 <td valign="top" class="name">Pm Step Number:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' description')}</td>77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'pmStepNumber')}</td> 78 78 79 79 </tr> … … 83 83 84 84 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td> 85 86 </tr> 87 88 <tr class="prop"> 89 <td valign="top" class="name">Maintenance Action:</td> 90 91 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 85 92 86 93 </tr> -
trunk/grails-app/views/maintenanceActionDetailed/create.gsp
r122 r124 23 23 </g:hasErrors> 24 24 <g:form action="save" method="post" > 25 <g:hiddenField name="plannedMaintenance.id" value="${maintenanceActionInstance.plannedMaintenance.id}" /> 25 26 <div class="dialog"> 26 27 <table> 27 <tbody> 28 <tbody> 29 30 <tr class="prop"> 31 <td valign="top" class="name"> 32 <label for="plannedMaintenance">Planned Maintenance:</label> 33 </td> 34 <!-- <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'plannedMaintenance','errors')}"> 35 <g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select> 36 </td>--> 37 <td valign="top" class="name"> 38 ${maintenanceActionInstance?.plannedMaintenance?.name} 39 </td> 40 </tr> 41 42 43 <tr class="prop"> 44 <td valign="top" class="name"> 45 <label for="maintenanceAction">Maintenance Action:</label> 46 </td> 47 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 48 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 49 </td> 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name"> 54 <label for="reasoning">Reasoning:</label> 55 </td> 56 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 57 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 58 </td> 59 </tr> 28 60 29 61 <tr class="prop"> … … 79 111 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 80 112 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="description">Description:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'description','errors')}"> 88 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/> 89 </td> 90 </tr> 113 </tr> 91 114 92 115 <tr class="prop"> … … 110 133 <tr class="prop"> 111 134 <td valign="top" class="name"> 112 <label for="p lannedMaintenance">Planned Maintenance:</label>135 <label for="pmStepNumber">PM Step Number:</label> 113 136 </td> 114 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'p lannedMaintenance','errors')}">115 < g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select>137 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 138 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 116 139 </td> 117 </tr> 118 119 <tr class="prop"> 120 <td valign="top" class="name"> 121 <label for="reasoning">Reasoning:</label> 122 </td> 123 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 124 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 125 </td> 126 </tr> 140 </tr> 127 141 128 142 </tbody> -
trunk/grails-app/views/maintenanceActionDetailed/edit.gsp
r122 r124 86 86 <tr class="prop"> 87 87 <td valign="top" class="name"> 88 <label for=" description">Description:</label>88 <label for="maintenanceAction">Maintenance Action:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">91 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 91 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 92 92 </td> 93 93 </tr> … … 110 110 </td> 111 111 </tr> 112 113 <tr class="prop"> 114 <td valign="top" class="name"> 115 <label for="pmStepNumber">PM Step Number:</label> 116 </td> 117 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 118 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 119 </td> 120 </tr> 112 121 113 122 <tr class="prop"> -
trunk/grails-app/views/maintenanceActionDetailed/list.gsp
r122 r124 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>System Section</th> 26 <th>Action</th> 27 28 <th>Planned Maintenance</th> 27 29 28 30 <th>Asset</th> … … 31 33 32 34 <th>Assembly</th> 33 34 <th>Sub Assembly</th>35 36 <th></th> 35 37 36 38 </tr> … … 38 40 <tbody> 39 41 <g:each in="${maintenanceActionInstanceList}" status="i" var="maintenanceActionInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">41 42 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/show/${maintenanceActionInstance.id}"'/> 43 42 44 <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td> 43 44 <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td> 45 46 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 47 48 <td>${fieldValue(bean:maintenanceActionInstance, field:'plannedMaintenance')}</td> 45 49 46 50 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td> … … 50 54 <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td> 51 55 52 <td>${fieldValue(bean:maintenanceActionInstance, field:'subAssembly')}</td> 53 56 <td> 57 <g:link action="show" id="${maintenanceActionInstance.id}"> 58 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 59 </g:link> 60 </td> 61 54 62 </tr> 55 63 </g:each> -
trunk/grails-app/views/maintenanceActionDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">System Section:</td> 34 34 35 <td valign="top" class="value"><g:link controller="systemSection " action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> … … 40 40 <td valign="top" class="name">Asset:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset " action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> … … 47 47 <td valign="top" class="name">Asset Type:</td> 48 48 49 <td valign="top" class="value"><g:link controller="assetType " action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value"><g:link controller="assetTypeDetailed" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td> 50 50 51 51 </tr> … … 54 54 <td valign="top" class="name">Assembly:</td> 55 55 56 <td valign="top" class="value"><g:link controller="assembly " action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td>56 <td valign="top" class="value"><g:link controller="assemblyDetailed" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td> 57 57 58 58 </tr> … … 61 61 <td valign="top" class="name">Sub Assembly:</td> 62 62 63 <td valign="top" class="value"><g:link controller="subAssembly " action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td>63 <td valign="top" class="value"><g:link controller="subAssemblyDetailed" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Component Item:</td> 69 69 70 <td valign="top" class="value"><g:link controller="componentItem " action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td>70 <td valign="top" class="value"><g:link controller="componentItemDetailed" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td> 71 71 72 72 </tr> 73 73 74 74 <tr class="prop"> 75 <td valign="top" class="name"> Description:</td>75 <td valign="top" class="name">Maintenance Action:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' description')}</td>77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 78 78 79 79 </tr> … … 89 89 <td valign="top" class="name">Maintenance Policy:</td> 90 90 91 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 91 <td valign="top" class="value">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</td> 92 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name">PM Step Number:</td> 97 98 <td valign="top" class="value">${maintenanceActionInstance?.pmStepNumber?.encodeAsHTML()}</td> 92 99 93 100 </tr> … … 96 103 <td valign="top" class="name">Planned Maintenance:</td> 97 104 98 <td valign="top" class="value"><g:link controller="plannedMaintenance " action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>105 <td valign="top" class="value"><g:link controller="plannedMaintenanceDetailed" action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td> 99 106 100 107 </tr> -
trunk/grails-app/views/plannedMaintenanceDetailed/list.gsp
r122 r124 31 31 32 32 <th>Recurring Schedule</th> 33 34 <th></th> 33 35 34 36 </tr> … … 36 38 <tbody> 37 39 <g:each in="${plannedMaintenanceInstanceList}" status="i" var="plannedMaintenanceInstance"> 38 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/plannedMaintenanceDetailed/show/${plannedMaintenanceInstance.id}"'/> 41 39 42 40 43 <td><g:link action="show" id="${plannedMaintenanceInstance.id}">${fieldValue(bean:plannedMaintenanceInstance, field:'id')}</g:link></td> … … 47 50 48 51 <td>${fieldValue(bean:plannedMaintenanceInstance, field:'recurringSchedule')}</td> 49 52 53 <td> 54 <g:link action="show" id="${plannedMaintenanceInstance.id}"> 55 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 56 </g:link> 57 </td> 58 50 59 </tr> 51 60 </g:each> -
trunk/grails-app/views/plannedMaintenanceDetailed/show.gsp
r122 r124 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Name:</td> 34 35 <td valign="top" class="value">${fieldValue(bean:plannedMaintenanceInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 33 40 <td valign="top" class="name">Description:</td> 34 41 … … 38 45 39 46 <tr class="prop"> 40 <td valign="top" class="name"> Is Active:</td>47 <td valign="top" class="name">Recurring Schedule:</td> 41 48 42 <td valign="top" class="value"> ${fieldValue(bean:plannedMaintenanceInstance, field:'isActive')}</td>49 <td valign="top" class="value"><g:link controller="recurringScheduleDetailed" action="edit" id="${plannedMaintenanceInstance?.recurringSchedule?.id}">${plannedMaintenanceInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td> 43 50 44 51 </tr> 45 52 46 53 <tr class="prop"> 47 <td valign="top" class="name"> Maintenance Actions:</td>54 <td valign="top" class="name">Is Active:</td> 48 55 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="m" in="${plannedMaintenanceInstance.maintenanceActions}"> 52 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 56 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name">Name:</td> 61 62 <td valign="top" class="value">${fieldValue(bean:plannedMaintenanceInstance, field:'name')}</td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Recurring Schedule:</td> 68 69 <td valign="top" class="value"><g:link controller="recurringSchedule" action="show" id="${plannedMaintenanceInstance?.recurringSchedule?.id}">${plannedMaintenanceInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td> 56 <td valign="top" class="value">${fieldValue(bean:plannedMaintenanceInstance, field:'isActive')}</td> 70 57 71 58 </tr> … … 81 68 </g:form> 82 69 </div> 70 71 <div class="list"> 72 <h1>Maintenance Actions</h1> 73 <table> 74 <thead> 75 <tr> 76 77 <!-- <g:sortableColumn property="plannedMaintenanceInstance.maintenanceAction.pmStepNumber" title="PM Step" /> --> 78 <th>Step</th> 79 <th>Action</th> 80 <th>System Section</th> 81 <th>Asset</th> 82 <th>Assembly</th> 83 <th>Maintenance Policy</th> 84 <th></th> 85 86 <!-- <g:sortableColumn property="commentW" title="Comment" /> 87 88 <g:sortableColumn property="dateDoneW" title="Date Done" /> 89 90 <g:sortableColumn property="enteredByW" title="Entered By" />--> 91 </tr> 92 </thead> 93 <tbody> 94 <g:each in="${plannedMaintenanceInstance?.maintenanceActions}" status="i" var="maintenanceAction"> 95 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/edit/${maintenanceAction.id}"'/> 96 97 <td>${fieldValue(bean:maintenanceAction, field:'pmStepNumber')}</td> 98 <td>${maintenanceAction.maintenanceAction}</td> 99 <td>${maintenanceAction.systemSection}</td> 100 <td>${maintenanceAction.asset}</td> 101 <td>${maintenanceAction.assembly}</td> 102 <td>${maintenanceAction.maintenancePolicy}</td> 103 104 <td> 105 <g:link controller="maintenanceActionDetailed" action="edit" id="${maintenanceAction.id}"> 106 <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> 107 </g:link> 108 </td> 109 110 </tr> 111 </g:each> 112 </tbody> 113 </table> 114 </div> 115 116 <br /> 117 118 <div class="buttons"> 119 <g:form controller="maintenanceActionDetailed"> 120 <input type="hidden" name="plannedMaintenanceInstance.id" value="${plannedMaintenanceInstance?.id}" /> 121 <span class="button"> 122 <g:actionSubmit value="Add Action" action="create" class="add"/> 123 </span> 124 </g:form> 125 </div> 126 83 127 </div> 84 128 </body> -
trunk/grails-app/views/recurringScheduleDetailed/edit.gsp
r122 r124 71 71 </td> 72 72 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'startDate','errors')}"> 73 <g:datePicker name="startDate" value="${recurringScheduleInstance?.startDate}" ></g:datePicker>73 <g:datePicker name="startDate" value="${recurringScheduleInstance?.startDate}" precision="day" ></g:datePicker> 74 74 </td> 75 75 </tr> -
trunk/grails-app/views/recurringScheduleDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">Planned Maintenance:</td> 34 34 35 <td valign="top" class="value"><g:link controller="plannedMaintenance " action="show" id="${recurringScheduleInstance?.plannedMaintenance?.id}">${recurringScheduleInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="plannedMaintenanceDetailed" action="show" id="${recurringScheduleInstance?.plannedMaintenance?.id}">${recurringScheduleInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> … … 47 47 <td valign="top" class="name">Period:</td> 48 48 49 <td valign="top" class="value"> <g:link controller="period" action="show" id="${recurringScheduleInstance?.period?.id}">${recurringScheduleInstance?.period?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value">${recurringScheduleInstance?.period?.encodeAsHTML()}</td> 50 50 51 51 </tr> … … 61 61 <td valign="top" class="name">Start Date:</td> 62 62 63 <td valign="top" class="value"> ${fieldValue(bean:recurringScheduleInstance, field:'startDate')}</td>63 <td valign="top" class="value"><g:formatDate date="${recurringScheduleInstance.startDate}" format="EEE, dd MMM yyyy"/></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Task:</td> 69 69 70 <td valign="top" class="value"><g:link controller="task " action="show" id="${recurringScheduleInstance?.task?.id}">${recurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td>70 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${recurringScheduleInstance?.task?.id}">${recurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td> 71 71 72 72 </tr> -
trunk/grails-app/views/systemSectionDetailed/edit.gsp
r122 r124 38 38 <ul> 39 39 <g:each var="a" in="${systemSectionInstance?.assets?}"> 40 <li><g:link controller="asset " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>40 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 41 </g:each> 42 42 </ul> 43 <g:link controller="asset " params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>43 <g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 44 45 45 </td> … … 72 72 <ul> 73 73 <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> 74 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>74 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 75 75 </g:each> 76 76 </ul> 77 <g:link controller="maintenanceAction " params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>77 <g:link controller="maintenanceActionDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 78 78 79 79 </td> -
trunk/grails-app/views/systemSectionDetailed/show.gsp
r122 r124 36 36 <ul> 37 37 <g:each var="a" in="${systemSectionInstance.assets}"> 38 <li><g:link controller="asset " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>38 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 39 </g:each> 40 40 </ul> … … 63 63 <ul> 64 64 <g:each var="m" in="${systemSectionInstance.maintenanceActions}"> 65 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>65 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 66 66 </g:each> 67 67 </ul> -
trunk/grails-app/views/taskDetailed/list.gsp
r110 r124 38 38 <tbody> 39 39 <g:each in="${taskInstanceList}" status="i" var="taskInstance"> 40 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">41 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> 41 42 42 <td>${fieldValue(bean:taskInstance, field:'id')}</td> 43 43 … … 64 64 </div> 65 65 <div class="paginateButtons"> 66 <g:paginate total="${ Task.count()}" />66 <g:paginate total="${taskInstanceTotal}" /> 67 67 </div> 68 68 </div> -
trunk/grails-app/views/taskDetailed/show.gsp
r106 r124 176 176 <tbody> 177 177 <g:each in="${taskInstance?.entries}" status="i" var="entry"> 178 <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> 179 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">178 <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> 179 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 180 180 181 181 <td style="width:65%">${entry.comment}</td> … … 183 183 <td>${entry.durationHour}:${entry.durationMinute}</td> 184 184 <td>${entry.enteredBy}</td> 185 185 186 <td> 186 187 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 189 190 </td> 190 191 192 </tr> 191 193 </g:if> 192 193 </tr>194 194 </g:each> 195 195 </tbody> … … 207 207 <th>Entered By</th> 208 208 <th></th> 209 209 210 <!-- <g:sortableColumn property="commentW" title="Comment" /> 210 211 … … 216 217 <tbody> 217 218 <g:each in="${taskInstance?.entries}" status="i" var="entry"> 218 <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> 219 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">220 219 <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> 220 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 221 221 222 <td width="65%">${entry.comment}</td> 222 223 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> 223 224 <td>${entry.durationHour}:${entry.durationMinute}</td> 224 225 <td>${entry.enteredBy}</td> 226 225 227 <td> 226 228 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 228 230 </g:link> 229 231 </td> 232 233 </tr> 230 234 </g:if> 231 232 </tr>233 235 </g:each> 234 236 </tbody> -
trunk/web-app/css/main.css
r110 r124 246 246 } 247 247 248 .clickableOdd { 249 background: #f7f7f7; 250 cursor: pointer; 251 } 252 .clickableEven { 253 background: #fff; 254 cursor: pointer; 255 } 256 248 257 /* LIST */ 249 258
Note: See TracChangeset
for help on using the changeset viewer.