Commits

Anonymous committed 03823b8

Fixed checkbox tests, fixed top label position for checkbox to not include extra rows/columns

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2551573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (3)

src/java/template/xhtml/checkbox.ftl

 <tr>
     <td colspan="2">
         <#include "/${parameters.templateDir}/simple/checkbox.ftl" />
-    </td>
-</tr>
-</#if>
+<#else>
 <tr>
 	<td valign="top" align="right">
 <#if parameters.labelposition?default("") == 'left'>
 >${parameters.label?html}</label><#rt/>
 </#if>
 </#if>
+</#if>
  <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/>

src/test/com/opensymphony/webwork/views/jsp/ui/Checkbox-4.txt

 <tr>
     <td colspan="2">
-        <label for="someId" class="checkboxLabel">mylabel</label>
+        <label for="someId" class="checkboxLabel">mylabel:</label>
     </td>
 </tr>
 <tr>
-	<td valign="top" align="right">
-	</td>
-    <td valign="top" align="left">
+    <td colspan="2">
 		<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
     </td>
 </tr>

src/test/com/opensymphony/webwork/views/jsp/ui/Checkbox-5.txt

 <tr>
 	<td valign="top" align="right">
-	    <label for="someId" class="checkboxLabel">mylabel</label>
+	    <label for="someId" class="checkboxLabel">mylabel:</label>
 	</td>
     <td valign="top" align="left">
 		<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.