ソースを参照

Modified styles again (minor change)

jorgen_falk 18 年 前
コミット
f0f905fe9c

+ 1
- 1
dddsample/src/main/java/se/citerus/dddsample/web/CargoTrackingController.java ファイルの表示

@@ -35,7 +35,7 @@ public class CargoTrackingController extends SimpleFormController {
35 35
     if (cargo != null) {
36 36
       model.put("cargo", cargo);
37 37
     } else {
38
-      errors.rejectValue("trackingId", "cargo.unknown_id", new Object[] {trackCommand.getTrackingId()}, "Unknown cargo id");
38
+      errors.rejectValue("trackingId", "cargo.unknown_id", new Object[] {trackCommand.getTrackingId()}, "Unknown tracking id");
39 39
     }
40 40
     return showForm(request, response, errors, model);
41 41
   }

+ 2
- 2
dddsample/src/main/webapp/WEB-INF/jsp/start.jsp ファイルの表示

@@ -11,7 +11,7 @@
11 11
 <body>
12 12
 <div id="container">
13 13
   <div id="search">
14
-  <h1>Search for Cargo</h1>
14
+  <h1>Search for Your Cargo</h1>
15 15
   <form:form method="post" commandName="trackCommand">
16 16
     <table cellspacing="0" cellpadding="4">
17 17
       <tr>
@@ -46,7 +46,7 @@
46 46
       </thead>
47 47
       <tbody>
48 48
         <c:forEach var="event" items="${cargo.deliveryHistory.events}">
49
-          <tr>
49
+          <tr class="event-type-${event.type}">
50 50
             <td>${event.type}</td>
51 51
             <td>${event.location}</td>
52 52
             <td>${event.time}</td>

+ 20
- 3
dddsample/src/main/webapp/style.css ファイルの表示

@@ -9,8 +9,8 @@ body {
9 9
 }
10 10
 
11 11
 body {
12
-  margin-left: 200px;
13
-  margin-right: 200px;
12
+  margin-left: 150px;
13
+  margin-right: 150px;
14 14
   padding: 0;
15 15
   font: 400 0.7em verdana, arial, sans-serif;
16 16
   line-height: 170%;
@@ -198,10 +198,27 @@ input.radio {
198 198
 }
199 199
 
200 200
 #result {
201
-  font-size: 1.2em;
201
+  font-size: 1.0em;
202 202
   border-bottom: 6px solid #ddd;
203 203
 }
204 204
 
205
+#result thead{
206
+  font-size: 1.2em;
207
+  font-weight: bold;	
208
+}
209
+
210
+#result tr{
211
+  line-height: 120%;
212
+}
213
+
205 214
 .error {
206 215
   color: #CC0033;
216
+}
217
+
218
+.event-type-LOAD {
219
+  background: #CCFFFF;
220
+}
221
+
222
+.event-type-UNLOAD {
223
+  background: #FFCCFF;
207 224
 }