Author: hansbak
Date: Fri Dec 28 22:44:47 2007
New Revision: 607387
URL:
http://svn.apache.org/viewvc?rev=607387&view=revLog:
only show link if status is valid
Modified:
ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml?rev=607387&r1=607386&r2=607387&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml Fri Dec 28 22:44:47 2007
@@ -59,7 +59,7 @@
<field name="comments" title="${uiLabelMap.CommonComments}"><display/></field>
<field name="completeLink" title="${uiLabelMap.CommonStatustoComplete}" widget-style="buttontext">
<hyperlink target="TimesheetToComplete?timesheetId=${timesheetId}&statusId=TIMESHEET_COMPLETED"
- description="${uiLabelMap.CommonStatustoComplete}" also-hidden="false"/>
+ description="${bsh:statusId.equals("TIMESHEET_IN_PROCESS")?"To complete":""}" also-hidden="false"/>
</field>
</form>
<form name="FindTimeSheet" target="FindTimeSheet" title="" type="single">
@@ -104,7 +104,7 @@
<field name="comments" title="${uiLabelMap.CommonComments}"><display/></field>
<field name="completeLink" title="${uiLabelMap.CommonStatustoComplete}" widget-style="buttontext">
<hyperlink target="TimesheetToComplete?timesheetId=${timesheetId}&statusId=TIMESHEET_COMPLETED"
- description="${uiLabelMap.CommonStatustoComplete}" also-hidden="false"/>
+ description="${bsh:statusId.equals("TIMESHEET_IN_PROCESS")?"To complete":""}" also-hidden="false"/>
</field>
</form>