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/26 22:41:26 UTC

[2/6] git commit: Make the demo page prettier

Make the demo page prettier


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/3361c4c4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/3361c4c4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/3361c4c4

Branch: refs/heads/master
Commit: 3361c4c4df3b59b9ade1b86a7fcfebb8fbbb7c09
Parents: 2383f0f
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Wed Dec 26 13:40:26 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed Dec 26 13:40:26 2012 -0800

----------------------------------------------------------------------
 tapestry-core/src/test/app1/SelectZoneDemo.tml |   69 +++++++++++-------
 1 files changed, 42 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3361c4c4/tapestry-core/src/test/app1/SelectZoneDemo.tml
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/app1/SelectZoneDemo.tml b/tapestry-core/src/test/app1/SelectZoneDemo.tml
index a94cdbd..d291b74 100644
--- a/tapestry-core/src/test/app1/SelectZoneDemo.tml
+++ b/tapestry-core/src/test/app1/SelectZoneDemo.tml
@@ -1,30 +1,45 @@
 <t:border xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
-	<p>Car Maker: ${carMaker}</p>
-	<p>Car Model: ${carModel}</p>
-	<t:form>
-		<p>
-			<t:errors />
-		</p>
-		<p>
-			<t:select t:id="carMaker" validate="required"
-				model="makeModel" zone="modelZone" encoder="makeEncoder" />
-		</p>
-
-		<t:zone t:id="modelZone">
-			<t:if test="carMaker">
-				<t:delegate to="modelBlock" />
-			</t:if>
-		</t:zone>
-
-		<t:block id="modelBlock">
-			<p id="carModelContainer">
-				<t:select t:id="carModel" model="availableModels" validate="required" blankOption="always" />
-			</p>
-		</t:block>
-		
-		<p>
-			<t:submit value="literal:Submit" />
-		</p>
-	</t:form>
+
+    <div class="well">
+        <dl class="dl-horizontal">
+            <dt>Car Maker:</dt>
+            <dd>${carMaker}</dd>
+            <dt>Car Model:</dt>
+            <dd>${carModel}</dd>
+        </dl>
+    </div>
+
+    <t:form class="well">
+        <t:errors/>
+
+        <div class="control-group">
+            <t:label for="carMaker"/>
+            <div class="controls">
+                <t:select t:id="carMaker" validate="required"
+                          model="makeModel" zone="modelZone" encoder="makeEncoder"/>
+
+            </div>
+        </div>
+
+        <t:zone t:id="modelZone">
+            <t:if test="carMaker">
+                <t:delegate to="modelBlock"/>
+            </t:if>
+        </t:zone>
+
+        <t:block id="modelBlock">
+            <div class="control-group">
+                <t:label for="carModel"/>
+                <div class="controls">
+
+                    <t:select t:id="carModel" model="availableModels" validate="required" blankOption="always"/>
+                </div>
+            </div>
+        </t:block>
+
+        <div class="form-actions">
+            <t:submit value="literal:Submit" class="btn btn-primary"/>
+        </div>
+    </t:form>
 
 </t:border>
\ No newline at end of file