Scarab commit: svn commit: r10783 - trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm

Hussayn Dabbous <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2009-07-11 01:26:09-0700
New Revision: 10783

Modified:
   trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm

Log:
SCB2981: Hints for attributes in issue editor.

Modified: trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm?view=diff&pathrev=10783&r1=10782&r2=10783
==============================================================================
--- trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm	(original)
+++ trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm	2009-07-11 01:26:09-0700
@@ -62,13 +62,22 @@
                 #set ($field = "Value")
               #end
               #if ($isEditAttributes)
+                #set ($fieldSize = 0)
+                #set ($fieldSize = $!attVal.Attribute.FieldSize)
+                #set ($fieldHint  = "")
+                #set ($fieldHint  = $!attVal.Attribute.Hint)
+                #set ($fieldExtraHeader = "")
+                #if  ($!attVal.Attribute.Description.startsWith("hint:"))
+                  #set ($fieldExtraHeader = "$!attVal.Attribute.Description.substring(5)")
+                #end
                 <tr>
-                  <th> #if ($rma.getRequired()) #showAsterisk() #end $rma.DisplayValue</th>
+                  <th style="white-space:nowrap;"> 
+                    #if ($rma.getRequired())#showAsterisk()&nbsp;#end$rma.DisplayValue
+                    #if($fieldExtraHeader)
+                    <pre>$fieldExtraHeader</pre>
+                    #end
+                  </th>
                   <td>
-                    #set ($fieldSize = 0)
-                    #set ($fieldSize = $!attVal.Attribute.FieldSize)
-                    #set ($fieldHint  = "")
-                    #set ($fieldHint  = $!attVal.Attribute.Hint)
                     #if ($att.isOptionAttribute())
                       #attrValueLeafSelect ($attVal $field "" false $attVal.isRequired())
                       #attrValueErrorMsg ($attVal $field)

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2370632
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.