Skip to content

Commit

Permalink
converted align and valign to css text-align and vertical-align
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed May 30, 2014
1 parent 63897e8 commit 1de0e77
Show file tree
Hide file tree
Showing 45 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/template/css_xhtml/reset.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<span <#rt/>
</#if>
<#if parameters.align??>
align="${parameters.align?html}"<#t/>
style="text-align: ${parameters.align?html};"<#t/>
</#if>
<#if parameters.id??>
id="wwctrl_${parameters.id}"<#rt/>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/template/css_xhtml/submit.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<span <#rt/>
</#if>
<#if parameters.align??>
align="${parameters.align?html}"<#t/>
style="text-align: ${parameters.align?html};"<#t/>
</#if>
<#if parameters.id??>
id="wwctrl_${parameters.id}"<#rt/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@


</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<#assign addLabel=parameters.addLabel?default("->")?html /><#t/>
<input type="button"
<#if parameters.buttonCssClass??><#t/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</#if>

</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<#if parameters.allowAddToLeft?default(true)><#t/>
<#assign addToLeftLabel = parameters.addToLeftLabel?default("<-")?html/><#t/>
<#if parameters.doubleHeaderKey??><#t/>
Expand Down
10 changes: 5 additions & 5 deletions core/src/main/resources/template/simple/table.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<#assign tableModel = webTable.model/>

<#if tableModel??>
<p align="center">
<p style="text-align: center;">
<table bgcolor="white" border="0" cellpadding="1" cellspacing="0" >
<tr>
<td>
Expand All @@ -40,16 +40,16 @@
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="bottom">
<td style="vertical-align: bottom;">
<#if false>
<img src="images/sorted_asc.gif" border="0" align="bottom" />
<img src="images/sorted_asc.gif" border="0" style="vertical-align: bottom;" />
<#else>
<a href="<@s.url><@s.param name="${webTable.sortColumnLinkName}" value="${curColumn.offset}"/><@s.param name="${webTable.sortOrderLinkName}" value="ASC"/></@s.url>"><img src="images/unsorted_asc.gif" border="0" align="bottom"/></a>
<a href="<@s.url><@s.param name="${webTable.sortColumnLinkName}" value="${curColumn.offset}"/><@s.param name="${webTable.sortOrderLinkName}" value="ASC"/></@s.url>"><img src="images/unsorted_asc.gif" border="0" style="vertical-align: bottom;"/></a>
</#if>
</td>
</tr>
<tr>
<td align="top"></td>
<td style="vertical-align: top;"></td>
</tr>
</table>
</td>
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/resources/template/xhtml/checkbox.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
errorFor="${parameters.id}"<#rt/>
</#if>
>
<td align="left" valign="top" colspan="2"><#rt/>
<td style="text-align: left; vertical-align: top;" colspan="2"><#rt/>
<span class="errorMessage">${error?html}</span><#t/>
</td><#lt/>
</tr>
Expand Down Expand Up @@ -72,7 +72,7 @@ ${parameters.label?html}<#t/>
<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
<#else>
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">
<#if labelpos?default("") == 'left'>
<#if parameters.label??> <label<#t/>
<#if parameters.id??>
Expand Down Expand Up @@ -107,7 +107,7 @@ ${parameters.label?html}<#t/>
</#if>
</#if>
</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">

<#if labelpos?default("") != 'top'>
<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/template/xhtml/controlfooter.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${parameters.after?if_exists}<#t/>
<#if hasFieldErrors>
<#list fieldErrors[parameters.name] as error>
<tr errorFor="${parameters.id}">
<td align="center" valign="top" colspan="2"><#rt/>
<td style="text-align: center; vertical-align: top;" colspan="2"><#rt/>
<span class="errorMessage">${error?html}</span><#t/>
</td><#lt/>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/template/xhtml/controlheader-core.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<#if hasFieldErrors>
<#list fieldErrors[parameters.name] as error>
<tr errorFor="${parameters.id}">
<td align="center" valign="top" colspan="2"><#rt/>
<td style="text-align: center; vertical-align: top;" colspan="2"><#rt/>
<span class="errorMessage">${error?html}</span><#t/>
</td><#lt/>
</tr>
Expand All @@ -47,7 +47,7 @@
-->
<tr>
<#if labelpos?default("") == 'top'>
<td align="left" valign="top" colspan="2"><#rt/>
<td style="text-align: left; vertical-align: top;" colspan="2"><#rt/>
<#else>
<td class="tdLabel"><#rt/>
</#if>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/template/xhtml/controlheader.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" />
<td
<#if parameters.align??>
align="${parameters.align?html}"<#t/>
style="text-align: ${parameters.align?html};"<#t/>
</#if>
><#t/>
2 changes: 1 addition & 1 deletion core/src/main/resources/template/xhtml/reset.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<tr>
<td colspan="2"><div <#rt/>
<#if parameters.align??>
align="${parameters.align?html}"<#t/>
style="text-align: ${parameters.align?html};"<#t/>
</#if>
><#t/>
<#include "/${parameters.templateDir}/simple/reset.ftl" />
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/template/xhtml/submit.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<tr>
<td colspan="2"><div <#rt/>
<#if parameters.align??>
align="${parameters.align?html}"<#t/>
style="text-align: ${parameters.align?html};"<#t/>
</#if>
><#t/>
<#include "/${parameters.templateDir}/simple/submit.ftl" />
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">
</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
<input type="hidden" id="__checkbox_someId" name="__checkbox_foo" value="baz"/>
<label for="someId" class="checkboxLabel">mylabel</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">
</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" id="foo" title="mytitle"/>
<input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
<label for="foo" class="checkboxLabel">mylabel</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<tr errorFor="foo">
<td align="left" valign="top" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
</tr>
<tr errorFor="foo">
<td align="left" valign="top" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
</tr>
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">

</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" checked="checked" id="foo" class="myErrorClass" title="mytitle" onclick="test();" ondblclick="test();"/>
<input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
<label for="foo" class="checkboxErrorLabel">mylabel</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<tr errorFor="foo">
<td align="left" valign="top" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Some Foo Error</span></td>
</tr>
<tr errorFor="foo">
<td align="left" valign="top" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><span class="errorMessage">Another Foo Error</span></td>
</tr>
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">

</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" checked="checked" id="foo" style="color:red" title="mytitle" onclick="test();" ondblclick="test();"/>
<input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz"/>
<label for="foo" class="checkboxErrorLabel">mylabel</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">
<label for="someId" class="checkboxLabel">mylabel:</label>
</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" checked="checked" id="someId" title="mytitle" onfocus="test();"/>
<input type="hidden" id="__checkbox_someId" name="__checkbox_foo" value="baz"/>
</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tr>
<td valign="top" align="right">
<td style="text-align: right; vertical-align: top;">
</td>
<td valign="top" align="left">
<td style="text-align: left; vertical-align: top;">
<input type="checkbox" name="foo" value="baz" checked="checked" disabled="disabled" id="foo" title="mytitle" />
<input type="hidden" id="__checkbox_foo" name="__checkbox_foo" value="baz" disabled="disabled"/>
<label for="foo" class="checkboxLabel">mylabel</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form id="testAction" name="testAction" action="/testAction.action" method="post">
<table class="wwFormTable">
<tr>
<td align="left" valign="top" colspan="2"><label class="label">label:</label></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><label class="label">label:</label></td>
</tr>
<tr>
<td><input type="text" name=""/></td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tr>
<td align="left" valign="top" colspan="2"><label for="myname" class="label">mylabel:</label></td>
<td style="text-align: left; vertical-align: top;" colspan="2"><label for="myname" class="label">mylabel:</label></td>
</tr>
<tr>
<td><label id="myname">bar</label></td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="left"><input type="reset" name="myname" value="bar"/></div></td>
<td colspan="2"><div style="text-align: left;"><input type="reset" name="myname" value="bar"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><input type="reset" name="myname" value="Reset" title="mytitle"/></div></td>
<td colspan="2"><div style="text-align: right;"><input type="reset" name="myname" value="Reset" title="mytitle"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><button type="reset" name="myname" value="bar">bar</button></div></td>
<td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar">bar</button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="left"><button type="reset" name="myname" value="bar">mylabel</button></div></td>
<td colspan="2"><div style="text-align: left;"><button type="reset" name="myname" value="bar">mylabel</button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><button type="reset" name="myname" value="bar" disabled="disabled">bar</button></div></td>
<td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar" disabled="disabled">bar</button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><button type="reset" name="myname" value="bar"><img alt="mylabel" src="some.gif"/></button></div></td>
<td colspan="2"><div style="text-align: right;"><button type="reset" name="myname" value="bar"><img alt="mylabel" src="some.gif"/></button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="left"><input type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1"/></div></td>
<td colspan="2"><div style="text-align: left;"><input type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><input type="submit" id="myname" name="myname" value="Submit" title="mytitle"/></div></td>
<td colspan="2"><div style="text-align: right;"><input type="submit" id="myname" name="myname" value="Submit" title="mytitle"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><button type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1">bar</button></div></td>
<td colspan="2"><div style="text-align: right;"><button type="submit" id="myname" name="myname" value="bar" disabled="disabled" tabindex="1">bar</button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="left"><button type="submit" id="myname" name="myname" value="bar">mylabel</button></div></td>
<td colspan="2"><div style="text-align: left;"><button type="submit" id="myname" name="myname" value="bar">mylabel</button></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><input type="image" alt="bar" id="myname" name="myname" value="bar" disabled="disabled"/></div></td>
<td colspan="2"><div style="text-align: right;"><input type="image" alt="bar" id="myname" name="myname" value="bar" disabled="disabled"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<tr>
<td colspan="2"><div align="right"><input type="image" alt="mylabel" src="some.gif" id="myname" name="myname" value="bar"/></div></td>
<td colspan="2"><div style="text-align: right;"><input type="image" alt="mylabel" src="some.gif" id="myname" name="myname" value="bar"/></div></td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tr errorFor="myId">
<td align="center" valign="top" colspan="2"><span class="errorMessage">bar error message</span></td>
<td style="text-align: center; vertical-align: top;" colspan="2"><span class="errorMessage">bar error message</span></td>
</tr>
<tr>
<td class="tdLabel"><label for="myId" class="errorLabel">mylabel:</label></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</td>
</tr>
<tr errorFor="myId">
<td align="center" valign="top" colspan="2">
<td style="text-align: center; vertical-align: top;" colspan="2">
<span class="errorMessage">barerrormessage</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tr errorFor="myId">
<td align="center" valign="top" colspan="2">
<td style="text-align: center; vertical-align: top;" colspan="2">
<span class="errorMessage">barerrormessage</span>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script type="text/javascript" src="/struts/inputtransferselect.js"></script>
<tableborder="0">
<tr><td><input type="text" name="collection_input" id="collection_input"/></td>
<td valign="middle"align="center"><inputtype="button"value="-&gt;"onclick="addOption(document.getElementById('collection_input'),document.getElementById('collection'))"/>
<td style="text-align: center; vertical-align: middle;"><inputtype="button"value="-&gt;"onclick="addOption(document.getElementById('collection_input'),document.getElementById('collection'))"/>
<br/><br/>
<input type="button"value="&lt;-"onclick="removeOptions(document.getElementById('collection'))"/>
<br/><br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', '');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', '');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="button" onclick="moveOptionDown(document.getElementById('id'), 'key', 'Header Key');" value="v" />
<input type="button" onclick="moveOptionUp(document.getElementById('id'), 'key', 'Header Key');" value="^" />
</td>
<td valign="middle" align="center">
<td style="text-align: center; vertical-align: middle;">
<input type="button" class="buttonCssClass" style="buttonCssStyle"
value="Left" onclick="moveSelectedOptions(document.getElementById('doubleId'), document.getElementById('id'), false, 'Double Header Key', '');alert('Moving Left');" /><br/><br/>
<input type="button" class="buttonCssClass" style="buttonCssStyle"
Expand Down
Loading

0 comments on commit 1de0e77

Please sign in to comment.