| 2768 |
mandeep.dh |
1 |
<!DOCTYPE html PUBLIC
|
|
|
2 |
"-//W3C//DTD XHTML 1.1 Transitional//EN"
|
|
|
3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
4 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
5 |
<head>
|
|
|
6 |
<style type="text/css">
|
|
|
7 |
* { font-family: Verdana; font-size: 96%; }
|
|
|
8 |
label { width: 10em; float: left; }
|
|
|
9 |
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
|
|
|
10 |
p { clear: both; }
|
|
|
11 |
.submit { margin-left: 12em; }
|
|
|
12 |
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
|
|
|
13 |
|
|
|
14 |
table {
|
|
|
15 |
border-width: 1px 1px 1px 1px;
|
|
|
16 |
border-spacing: 2px;
|
|
|
17 |
border-style: outset outset outset outset;
|
|
|
18 |
border-color: gray gray gray gray;
|
|
|
19 |
border-collapse: separate;
|
|
|
20 |
background-color: white;
|
|
|
21 |
}
|
|
|
22 |
th {
|
|
|
23 |
border-width: 1px 1px 1px 1px;
|
|
|
24 |
padding: 1px 1px 1px 1px;
|
|
|
25 |
border-style: inset inset inset inset;
|
|
|
26 |
border-color: gray gray gray gray;
|
|
|
27 |
background-color: white;
|
|
|
28 |
-moz-border-radius: 0px 0px 0px 0px;
|
|
|
29 |
}
|
|
|
30 |
td {
|
|
|
31 |
border-width: 1px 1px 1px 1px;
|
|
|
32 |
padding: 1px 1px 1px 1px;
|
|
|
33 |
border-style: inset inset inset inset;
|
|
|
34 |
border-color: gray gray gray gray;
|
|
|
35 |
background-color: white;
|
|
|
36 |
-moz-border-radius: 0px 0px 0px 0px;
|
|
|
37 |
}
|
|
|
38 |
</style>
|
|
|
39 |
<title>List of Brands</title>
|
|
|
40 |
</head>
|
|
|
41 |
<body>
|
|
|
42 |
<div>
|
|
|
43 |
<span align="right"> Welcome $action.getUsername() <a href="$request.contextPath/logout">logout</a></span>
|
|
|
44 |
</div>
|
|
|
45 |
<div>
|
|
|
46 |
<h1>Brands</h1>
|
|
|
47 |
|
|
|
48 |
<a href="$request.contextPath/brand/new">Create New</a>
|
|
|
49 |
|
|
|
50 |
<div style="color:green;">
|
|
|
51 |
#sactionmessage()
|
|
|
52 |
</div>
|
|
|
53 |
<div style="color:red;">
|
|
|
54 |
#sactionerror()
|
|
|
55 |
</div>
|
|
|
56 |
|
|
|
57 |
#drawAllBrands($action.getBrands())
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
</body>
|
|
|
61 |
</html>
|
|
|
62 |
|
|
|
63 |
#macro (drawAllBrands $brands)
|
|
|
64 |
<table id="myTable">
|
|
|
65 |
<thead>
|
|
|
66 |
<tr style="border: 1px">
|
|
|
67 |
<th>#</th>
|
|
|
68 |
<th>BrandId</th>
|
|
|
69 |
<th>Name</th>
|
|
|
70 |
<th colspan="2">Actions</th>
|
|
|
71 |
</tr>
|
|
|
72 |
</thead>
|
|
|
73 |
<tbody>
|
|
|
74 |
#foreach ( $brandId in $brands.keySet() )
|
|
|
75 |
#set($brand = $brands.get($brandId))
|
|
|
76 |
<tr style="border: 1px">
|
|
|
77 |
<td>$velocityCount</td>
|
|
|
78 |
<td><a href="/content/brand/$brandId/edit">$brandId</a></td>
|
|
|
79 |
<td>$brand.getDisplayName()</td>
|
|
|
80 |
<td><a href="/content/brand/$brandId" target="_blank">View</a></td>
|
|
|
81 |
<td><a href="" id="$brandId" class="delete">Delete</a></td>
|
|
|
82 |
</tr>
|
|
|
83 |
#end
|
|
|
84 |
</tbody>
|
|
|
85 |
</table>
|
|
|
86 |
|
|
|
87 |
#end
|