From fd39215c26f703e72620cf712b030c8dfb1c50e6 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 24 Apr 2008 05:07:52 +0000 Subject: [PATCH] polish l&f --- .../src/main/webapp/styles/booking.css | 1 + .../hotels/booking/enterBookingDetails.jsp | 2 +- .../WEB-INF/hotels/booking/reviewBooking.jsp | 2 +- .../webapp/WEB-INF/hotels/hotelResults.jsp | 24 +- .../src/main/webapp/WEB-INF/hotels/index.jsp | 82 +++---- .../src/main/webapp/WEB-INF/hotels/search.jsp | 2 +- .../src/main/webapp/WEB-INF/hotels/show.jsp | 2 +- .../src/main/webapp/styles/booking.css | 214 +++++++----------- 8 files changed, 143 insertions(+), 186 deletions(-) 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 0d8714ec..8cb0bf14 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 @@ -80,6 +80,7 @@ } .section { + text-align: left; width: 505px; float: left; margin-bottom: 5px; diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp index 2225a220..a319b472 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/enterBookingDetails.jsp @@ -3,7 +3,7 @@ <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-

Book Hotel

+

Book Hotel

diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp index 9251b74d..ace908a9 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/reviewBooking.jsp @@ -3,7 +3,7 @@ <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-

Confirm Hotel Booking

+

Confirm Hotel Booking

diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/hotelResults.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/hotelResults.jsp index 7ba71a83..fbca4f52 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/hotelResults.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/hotelResults.jsp @@ -28,19 +28,7 @@ - - \ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/index.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/index.jsp index 7733edcb..5b974f14 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/index.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/index.jsp @@ -7,7 +7,7 @@ -

Search Hotels

+

Search Hotels

@@ -43,41 +43,45 @@ -
-

Current Hotel Bookings

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
${booking.hotel.name}${booking.hotel.address}${booking.hotel.city}, ${booking.hotel.state}${booking.checkinDate}${booking.checkoutDate}${booking.id} - Cancel -
No booking history
-
-
+
+

Current Hotel Bookings

+ + + + No bookings found + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameAddressCity, StateCheck in DateCheck out DateConfirmation NumberAction
${booking.hotel.name}${booking.hotel.address}${booking.hotel.city}, ${booking.hotel.state}${booking.checkinDate}${booking.checkoutDate}${booking.id} + Cancel +
+
+ +
+ \ No newline at end of file diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp index 08628f59..f1f2eb99 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/search.jsp @@ -1,7 +1,7 @@ <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
-

Hotel Results

+

Hotel Results

diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp index 6dc285cd..3e33ab0d 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/show.jsp @@ -3,7 +3,7 @@ <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-

View Hotel

+

View Hotel

diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/styles/booking.css b/spring-webflow-samples/booking-mvc/src/main/webapp/styles/booking.css index 01c22a43..8cb0bf14 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/styles/booking.css +++ b/spring-webflow-samples/booking-mvc/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; @@ -27,6 +33,7 @@ width: 100%; margin: 10px 0 0 0; padding: 0 0 0 0; + text-align: none; } #welcome { @@ -40,135 +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"], - #content.spring input[type="button"], - #content.spring 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; - margin-top: 5px; - text-align: right; - } - - #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,7 +69,76 @@ padding-right: 20px; } - div#header a { - color: inherit; - background-color: inherit; - } \ No newline at end of file + .errors { + font-weight: bold; + text-align: left; + color: #600; + } + + .errors ul { + list-style: none; + } + + .section { + text-align: left; + 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