Skip to content

Commit

Permalink
arranging nodes in a table when running a job
Browse files Browse the repository at this point in the history
  • Loading branch information
techthumb committed Sep 30, 2011
1 parent d11bf5e commit 5351daa
Showing 1 changed file with 13 additions and 5 deletions.
Expand Up @@ -27,12 +27,20 @@
<g:elseif test="${nodes}">
<span class="prompt">Nodes:</span>
<div class="presentation">
<g:each var="node" in="${nodes}">
<p>
<input id="${node.nodename}" type="checkbox" name="extra.nodeIncludeName" value="${node.nodename}" checked="true"/>
<label for="${node.nodename}">${node.nodename}</label>
</p>
<table>
<g:each var="node" in="${nodes}" status="index">
<g:if test="${index % 10 == 0}">
<tr>
</g:if>
<td>
<input id="${node.nodename}" type="checkbox" name="extra.nodeIncludeName" value="${node.nodename}" checked="true"/>
<label for="${node.nodename}">${node.nodename}</label>
</td>
<g:if test="${(index % 10 == 9) || (index+1 == nodes.size())}">
</tr>
</g:if>
</g:each>
</table>
</div>
</g:elseif>
<div class="buttons" id="formbuttons">
Expand Down

0 comments on commit 5351daa

Please sign in to comment.