You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/12/16 02:17:33 UTC
[26/50] git commit: Clean up formatting of form
Clean up formatting of form
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/8ec92ef6
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/8ec92ef6
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/8ec92ef6
Branch: refs/heads/master
Commit: 8ec92ef6b1a178bb50c2b363ead47d97260fdc90
Parents: 77a8441
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Wed Dec 5 15:38:56 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed Dec 5 15:38:56 2012 -0800
----------------------------------------------------------------------
tapestry-core/src/test/app1/FormFragmentDemo.tml | 88 +++++++----------
1 files changed, 38 insertions(+), 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/8ec92ef6/tapestry-core/src/test/app1/FormFragmentDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/FormFragmentDemo.tml b/tapestry-core/src/test/app1/FormFragmentDemo.tml
index ec568c8..bc82113 100644
--- a/tapestry-core/src/test/app1/FormFragmentDemo.tml
+++ b/tapestry-core/src/test/app1/FormFragmentDemo.tml
@@ -1,70 +1,58 @@
<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
- <h1>Form Fragment Demo</h1>
+<h1>Form Fragment Demo</h1>
- <form t:id="form">
+<form t:id="form">
<t:errors/>
- <div class="t-beaneditor">
+ <t:label for="name"/>
+ <t:textfield t:id="name" value="subscribe.name"/>
- <div class="t-beaneditor-row">
- <t:label for="name"/>
- <t:textfield t:id="name" value="subscribe.name"/>
- </div>
+ <label class="checkbox">
+ <t:checkbox t:id="subscribeToEmail" t:mixins="triggerfragment" fragment="showEmail"/>
+ Subscribe to Email?
+ </label>
- <t:checkbox t:id="subscribeToEmail" t:mixins="triggerfragment" fragment="showEmail"/>
- <t:label for="subscribeToEmail">Subscribe to Email?</t:label>
- <t:formfragment t:id="showEmail" visible="subscribeToEmail" hide="fade">
- <div class="t-beaneditor-row">
- <t:label for="email"/>
- <t:textfield t:id="email" value="subscribe.email"/>
- </div>
- </t:formfragment>
+ <t:formfragment t:id="showEmail" visible="subscribeToEmail" hide="fade">
+ <t:label for="email"/>
+ <t:textfield t:id="email" value="subscribe.email"/>
+ </t:formfragment>
- <br/>
+ <t:radiogroup value="codeVisible">
+ <label class="radio">
+ <t:radio t:id="on" value="true"/>
+ On
+ </label>
+ <label class="radio">
+ <t:radio t:id="off" t:mixins="triggerfragment" fragment="codeFragment"
+ invert="true" value="false"/>
+ Off
+ </label>
+ </t:radiogroup>
- <t:radiogroup value="codeVisible">
- <t:radio t:id="on" label="On" value="true"/>
- <t:label for="on"/>
- <t:radio t:id="off" label="Off" t:mixins="triggerfragment" fragment="codeFragment"
- invert="true" value="false"/>
- <t:label for="off"/>
- </t:radiogroup>
+ <t:formfragment t:id="codeFragment" visible="codeVisible">
+ <t:label for="code"/>
+ <t:textfield t:id="code" value="subscribe.code"/>
+ </t:formfragment>
- <t:formfragment t:id="codeFragment" visible="codeVisible">
- <div class="t-beaneditor-row">
- <t:label for="code"/>
- <t:textfield t:id="code" value="subscribe.code"/>
- </div>
- </t:formfragment>
+ <label>
+ <t:checkbox t:id="subVisible" t:mixins="triggerfragment" fragment="editSub"/>
+ Edit Sub? (whatever that is)
+ </label>
- <br/>
+ <t:formfragment t:id="editSub" visible="subVisible" alwayssubmit="true" hide="fade">
+ <t:label for="sub"/>
+ <t:textfield t:id="sub" value="subscribe.sub"/>
+ </t:formfragment>
- <t:checkbox t:id="subVisible" t:mixins="triggerfragment" fragment="editSub"/>
- <t:label for="subVisible">
- Edit Sub? (whatever that is)</t:label>
- <t:formfragment t:id="editSub" visible="subVisible" alwayssubmit="true" hide="fade">
- <div class="t-beaneditor-row">
- <t:label for="sub"/>
- <t:textfield t:id="sub" value="subscribe.sub"/>
- </div>
- </t:formfragment>
+ <input type="submit" class="btn btn-primary" value="Subscribe"/>
+</form>
- <div class="t-beaneditor-row">
- <input type="submit" value="Subscribe"/>
- </div>
+<t:actionlink t:id="clear" class="btn">Clear Errors</t:actionlink>
- </div>
-
-
- <p>
- <t:actionlink t:id="clear">Clear</t:actionlink>
- </p>
-
- </form>
</html>
\ No newline at end of file