Browse Source

HPCC-10176 Replace "bug" from ZAP report page for legacy WU Details

I made this fix based on the request of HPCC-10291.

The following changes are made for ZAP (bug) report function of legacy
WU Details page: 1. In the WU Details page, the "Bug Report" icon is
removed. A "Z.A.P. Report" button is added beside the "Reset" button.
2. In the Report form, the title is changed from "Bug Report" to
"Report". The label of the submit button is changed from "Create Bug
Report" to "Create Report". The sentences inside the form start with
capital letters.

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
Kevin Wang 11 years ago
parent
commit
7ea6622c0a

+ 5 - 5
esp/eclwatch/ws_XSLT/WUBugReportForm.xslt

@@ -86,7 +86,7 @@
                 </script>
             </head>
             <body class="yui-skin-sam" onload="nof5();onLoad()">
-                <h3 style="text-align: center;">Bug Report</h3>
+                <h3 style="text-align: center;">Report</h3>
                 <p/>
                 <form action="" method="POST">
                     <input type="hidden" id="WUID" name="WUID" value="{WUID}"/>
@@ -153,7 +153,7 @@
                         <table>
                             <tr>
                                 <td valign="top" style="width: 450px">
-                                    <b>Problem Description:</b> Please fill in details about what might be going wrong; is it a SOAP call? ...
+                                    <b>Problem Description:</b> Please fill in details about what might be going wrong. Is it a SOAP call? ...
                                 </td>
                                 <td>
                                     <textarea rows="10" cols="72" id="ProblemDescription" name="ProblemDescription">&#160;</textarea>
@@ -161,7 +161,7 @@
                             </tr>
                             <tr>
                                 <td valign="top" style="width: 450px">
-                                    <b>History:</b> Please fill in details about when the job last ran; what has changed since then...
+                                    <b>History:</b> Please fill in details about when the job last ran. What has changed since then?...
                                 </td>
                                 <td>
                                     <textarea rows="10" cols="72" id="WhatChanged" name="WhatChanged">&#160;</textarea>
@@ -169,7 +169,7 @@
                             </tr>
                             <tr>
                                 <td valign="top" style="width: 450px">
-                                    <b>Timing:</b> Please fill in details about where the job is going slow? what do the timings say?...
+                                    <b>Timing:</b> Please fill in details about where the job is going slow. What do the timings say?...
                                 </td>
                                 <td>
                                     <textarea rows="10" cols="72" id="WhereSlow" name="WhereSlow">&#160;</textarea>
@@ -178,7 +178,7 @@
                             <tr>
                                 <td></td>
                                 <td>
-                                    <input type="submit" value="Create Bug Report" name="Report" onclick="onReport()"/>
+                                    <input type="submit" value="Create Report" name="Report" onclick="onReport()"/>
                                 </td>
                             </tr>
                         </table>

+ 7 - 17
esp/eclwatch/ws_XSLT/wuid.xslt

@@ -784,23 +784,13 @@
             <td>
               <h3>Workunit Details</h3>
             </td>
-                        <xsl:choose>
-                            <xsl:when test="number(Workunit/Archived) &lt; 1">
-                                <td>
-                                    <img id="refresh" src="/esp/files/img/refresh.png" onclick="TurnRefresh()" title="Turn on/off Auto Refresh" />
-                                    <img border="0" src="/esp/files/img/bug.png" title="Create a bug report on this workunit" width="22" height="20" onclick="return popupBugReportForm()"/>
-                                </td>
-                                <td style="visibility:hidden">
-                                </td>
-                            </xsl:when>
-                            <xsl:otherwise>
-                                <td>
-                                    <img border="0" src="/esp/files/img/bug.png" title="Create a bug report on this workunit" width="22" height="20" onclick="return popupBugReportForm()"/>
-                                </td>
-                                <td style="visibility:hidden">
-                                </td>
-                            </xsl:otherwise>
-                        </xsl:choose>
+                        <xsl:if test="number(Workunit/Archived) &lt; 1">
+                            <td>
+                                <img id="refresh" src="/esp/files/img/refresh.png" onclick="TurnRefresh()" title="Turn on/off Auto Refresh" />
+                            </td>
+                            <td style="visibility:hidden">
+                            </td>
+                        </xsl:if>
                     </tr>
                 </table>
 

+ 1 - 0
esp/eclwatch/ws_XSLT/wuidcommon.xslt

@@ -788,6 +788,7 @@
                           <xsl:attribute name="disabled">disabled</xsl:attribute>
                         </xsl:if>
                       </input>
+              <input type="button" name="ZAPReport" style="width: 120px" value="Z.A.P. Report" class="sbutton" onclick="return popupBugReportForm()"/>
             </td>
           </tr>
           <tr>

BIN
esp/files/img/bug.png