Subversion Repositories SmartDukaan

Rev

Rev 2768 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2768 Rev 2838
Line 34... Line 34...
34
    border-color: gray gray gray gray;
34
    border-color: gray gray gray gray;
35
    background-color: white;
35
    background-color: white;
36
    -moz-border-radius: 0px 0px 0px 0px;
36
    -moz-border-radius: 0px 0px 0px 0px;
37
}
37
}
38
</style>
38
</style>
39
<title>List of Brands</title>
39
<title>List of Special Pages</title>
40
</head>
40
</head>
41
<body>
41
<body>
42
<div>
42
<div>
43
    <span align="right"> Welcome $action.getUsername()   <a href="$request.contextPath/logout">logout</a></span>
43
    <span align="right"> Welcome $action.getUsername()   <a href="$request.contextPath/logout">logout</a></span>
44
</div>
44
</div>
45
<div>
45
<div>
46
    <h1>Brands</h1>
46
    <h1>Special Pages</h1>
47
 
47
 
48
    <a href="$request.contextPath/brand/new">Create New</a>
48
    <a href="$request.contextPath/special-page/new">Create New</a>
49
        
49
        
50
    <div style="color:green;">
50
    <div style="color:green;">
51
    #sactionmessage()
51
    #sactionmessage()
52
    </div>
52
    </div>
53
    <div style="color:red;">
53
    <div style="color:red;">
54
    #sactionerror()
54
    #sactionerror()
55
    </div>
55
    </div>
56
    
56
    
57
    #drawAllBrands($action.getBrands())
57
    #drawAllBrands($action.getSpecialPages())
58
</div>
58
</div>
59
 
59
 
60
</body>
60
</body>
61
</html>
61
</html>
62
 
62
 
63
#macro (drawAllBrands $brands)
63
#macro (drawAllBrands $specialPages)
64
    <table id="myTable">
64
    <table id="myTable">
65
        <thead>
65
        <thead>
66
            <tr style="border: 1px">
66
            <tr style="border: 1px">
67
                <th>#</th>
67
                <th>#</th>
68
                <th>BrandId</th>
68
                <th>SpecialPage Id</th>
69
                <th>Name</th>
69
                <th>Name</th>
70
                <th colspan="2">Actions</th>
70
                <th colspan="2">Actions</th>
71
            </tr>
71
            </tr>
72
        </thead>
72
        </thead>
73
        <tbody>
73
        <tbody>
74
    #foreach ( $brandId in $brands.keySet() )
74
    #foreach ( $specialPageId in $specialPages.keySet() )
75
            #set($brand = $brands.get($brandId))
75
            #set($specialPage = $specialPages.get($specialPageId))
76
            <tr style="border: 1px">
76
            <tr style="border: 1px">
77
                <td>$velocityCount</td>
77
                <td>$velocityCount</td>
78
                <td><a href="/content/brand/$brandId/edit">$brandId</a></td>
78
                <td><a href="/content/special-page/$specialPageId/edit">$specialPageId</a></td>
79
                <td>$brand.getDisplayName()</td>
79
                <td>$specialPage.getDisplayName()</td>
80
                <td><a href="/content/brand/$brandId" target="_blank">View</a></td>
80
                <td><a href="/content/special-page/$specialPageId" target="_blank">View</a></td>
81
                <td><a href=""  id="$brandId" class="delete">Delete</a></td>
81
                <td><a href=""  id="$specialPageId" class="delete">Delete</a></td>
82
            </tr>
82
            </tr>
83
    #end
83
    #end
84
        </tbody>
84
        </tbody>
85
    </table>
85
    </table>
86
 
86