From c05695b5f3da166c0d2b86befc85e9d0f7753858 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 24 Apr 2008 05:02:00 +0000 Subject: [PATCH] polish l&f --- .../flows/main/enterSearchCriteria.xhtml | 27 ++- .../WEB-INF/flows/main/reviewHotel.xhtml | 75 +++---- .../WEB-INF/flows/main/reviewHotels.xhtml | 6 +- .../src/main/webapp/styles/booking.css | 212 +++++++----------- 4 files changed, 140 insertions(+), 180 deletions(-) diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml index 409136ad..1d79fe8a 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/enterSearchCriteria.xhtml @@ -16,22 +16,29 @@

Search Hotels

-
-
- - - +
+
+ Search String:
-
+
+ + + +
+
+
+
Maximum results: +
+
-
- -
-
+
+
+ +
diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml index 81712b45..5b5e5340 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotel.xhtml @@ -10,47 +10,46 @@

View Hotel

-
-
Name:
-
#{hotel.name}
-
-
-
Address:
-
#{hotel.address}
-
-
-
City:
-
#{hotel.city}
-
-
-
State:
-
#{hotel.state}
-
-
-
Zip:
-
#{hotel.zip}
-
-
-
Country:
-
#{hotel.country}
-
-
-
Nightly rate:
-
- - - -
-
-
- -
-
-   - +
+
+
Name:
+
#{hotel.name}
+
+
+
Address:
+
#{hotel.address}
+
+
+
City:
+
#{hotel.city}
+
+
+
State:
+
#{hotel.state}
+
+
+
Zip:
+
#{hotel.zip}
+
+
+
Country:
+
#{hotel.country}
+
+
+
Nightly rate:
+
+ + + +
+
+
+   + +
diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml index 8555ee62..c6544b73 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/flows/main/reviewHotels.xhtml @@ -39,11 +39,9 @@ - - diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/styles/booking.css b/spring-webflow-samples/booking-faces/src/main/webapp/styles/booking.css index 7352a777..0d8714ec 100644 --- a/spring-webflow-samples/booking-faces/src/main/webapp/styles/booking.css +++ b/spring-webflow-samples/booking-faces/src/main/webapp/styles/booking.css @@ -11,11 +11,17 @@ text-decoration: none; font-weight: bold; } - + body.spring { background-color: #9cac7c; } - + + form div, + form p { + padding: 0px; + margin: 0 0 .5em 0; + } + #header.spring { margin: 0 0 1em 0; padding: 0px 0px; @@ -41,136 +47,13 @@ #welcome div.right { float: right; } - - form div, - form p { - padding: 0px; - margin: 0 0 .5em 0; - } - + #content.spring { width: 740px; background: #fff url(../images/bg.gif) 0 0 repeat; margin-bottom: 0px; } - - #content .section { - width: 505px; - float: left; - margin-bottom: 5px; - } - - #content.spring input[type="submit"], input[type="button"], button { - font-weight: bold; - color: #fff; - height: 20px; - background: #fff url(../images/btn.bg.gif) 0 0 repeat-x; - border-style: none; - vertical-align: middle; - } - - #content.spring button - { - font-size: 1em; - font-family: arial,helvetica,verdana,sans-serif; - margin-top: 0pt; - margin-right: 0pt; - margin-bottom: 0pt; - margin-left: 0pt; - padding-top: 2px; - padding-right: 2px; - padding-bottom: 2px; - padding-left: 2px; - } - - #content.spring button - { - vertical-align: middle; - } - - .errors { - font-weight: bold; - text-align: left; - color: #600; - } - - .errors ul { - list-style: none; - } - - #content .field { - float:left; - } - - #content .field .label { - float: left; - padding-top: 5px; - padding-right: 5px; - font-weight: bold; - width: 150px; - text-align: right; - } - - #content .field .output { - float: left; - width: 250px; - padding-top: 5px; - text-align: left; - } - - #content .field .input { - float: left; - width: 250px; - text-align: left; - } - - #content .searchGroup { - width: 35%; - } - - #content .buttonGroup { - clear: both; - text-align: right; - } - - #content .buttonGroup input[type="submit"], .buttonGroup input[type="button"] { - margin-right: 5px; - } - - #content .previous { - float: right; - } - - #content .next { - float: right; - } - - #content .next a { - margin-left: 20px; - } - - #content .summary { - width: 100%; - border: 1px solid #414f23; - border-collapse: collapse; - } - - #content .summary thead th { - border-left: 1px solid #414f23; - background: #fff url(../images/th.bg.gif) 0 100% repeat-x; - border-bottom: 1px solid #414f23; - padding: 6px; - text-align: left; - font-size: small; - } - - #content .summary tbody td { - border-left: 1px solid #9cac7c; - padding: 4px; - border-bottom: 1px solid #9cac7c; - font-size: 8pt; - } - + #local.spring{ width: 215px; } @@ -184,4 +67,77 @@ #footer.spring img { float: right; padding-right: 20px; - } \ No newline at end of file + } + + .errors { + font-weight: bold; + text-align: left; + color: #600; + } + + .errors ul { + list-style: none; + } + + .section { + width: 505px; + float: left; + margin-bottom: 5px; + } + + .field { + float:left; + } + + .field .label { + float: left; + padding-top: 5px; + padding-right: 5px; + font-weight: bold; + width: 150px; + text-align: right; + } + + .field .input { + float: left; + width: 250px; + text-align: left; + } + + .field .output { + float: left; + width: 250px; + padding-top: 5px; + text-align: left; + } + + .buttonGroup { + clear: both; + text-align: right; + } + + .buttonGroup input[type="submit"], .buttonGroup input[type="button"], .buttonGroup a { + margin-right: 5px; + } + + .summary { + width: 100%; + border: 1px solid #414f23; + border-collapse: collapse; + } + + .summary thead th { + border-left: 1px solid #414f23; + background: #fff url(../images/th.bg.gif) 0 100% repeat-x; + border-bottom: 1px solid #414f23; + padding: 6px; + text-align: left; + font-size: small; + } + + .summary tbody td { + border-left: 1px solid #9cac7c; + padding: 4px; + border-bottom: 1px solid #9cac7c; + font-size: 8pt; + } \ No newline at end of file