Cleanup the markup (to use Bootstrap)
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/21965c59 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/21965c59 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/21965c59 Branch: refs/heads/master Commit: 21965c59e37a218499738d723d0ce3c590f4a0f8 Parents: 259d5e1 Author: Howard M. Lewis Ship <[email protected]> Authored: Sat Apr 20 19:21:53 2013 -0400 Committer: Howard M. Lewis Ship <[email protected]> Committed: Sat Apr 20 19:21:53 2013 -0400 ---------------------------------------------------------------------- tapestry-core/src/test/app1/RadioDemo.tml | 69 ++++++++++++++---------- 1 files changed, 40 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/21965c59/tapestry-core/src/test/app1/RadioDemo.tml ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/app1/RadioDemo.tml b/tapestry-core/src/test/app1/RadioDemo.tml index 085b84e..0b84f29 100644 --- a/tapestry-core/src/test/app1/RadioDemo.tml +++ b/tapestry-core/src/test/app1/RadioDemo.tml @@ -1,52 +1,63 @@ <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> - <h1>Radio Demo</h1> +<h1>Radio Demo</h1> - <p>Choose a department and position:</p> +<p>Choose a department and position:</p> - <t:form> +<t:form> <t:errors/> <t:radiogroup t:id="department" t:validate="required"> - <t:loop source="departments" value="loopValue"> - <p> - <t:radio t:id="radio" value="loopValue" label="prop:label"/> - <t:label for="radio"/> - </p> - </t:loop> - </t:radiogroup> + <div class="well"> + + <t:loop source="departments" value="loopValue"> - <br/> + <div class="control-group"> + <div class="controls"> + <label class="radio"> + <t:radio t:id="radio" value="loopValue"/> + ${label} + </label> + </div> + </div> + + </t:loop> + </div> + </t:radiogroup> <t:radiogroup t:id="position"> - <p> - <t:radio t:id="radio1" value="literal:TEMP" label="Temp"/> - <t:label for="radio1"/> - </p> - <p> - <t:radio t:id="radio2" value="literal:LIFER" label="Lifer"/> - <t:label for="radio2"/> - </p> + <div class="well"> + <div class="control-group"> + <label class="radio"> + <t:radio t:id="radio1" value="literal:TEMP"/> + Temp + </label> + <label class="radio"> + <t:radio t:id="radio2" value="literal:LIFER"/> + Lifer + </label> + </div> + </div> </t:radiogroup> - <p> - <input type="submit" value="Update"/> - </p> - </t:form> + <div class="form-actions"> + <input type="submit" value="Update"/> + </div> +</t:form> - <t:if test="department"> +<t:if test="department"> <hr/> Selected department: ${department} - </t:if> +</t:if> - <t:if test="position"> +<t:if test="position"> <hr/> Selected position: ${position} - </t:if> +</t:if> - <p> +<p> <t:actionlink t:id="reset">reset</t:actionlink> - </p> +</p> </html>
