Subversion Repositories SmartDukaan

Rev

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

Rev 37246 Rev 37256
Line 1... Line -...
1
<div class="panel panel-default" id="hot-deals-table-panel"
-
 
2
     data-active-count="$activeCount" data-max-deals="$maxDeals">
1
<div id="hot-deals-table-panel" data-page="$page" data-pages="$pages">
3
    <div class="panel-heading">Hot Deal Models</div>
-
 
4
    <div class="panel-body">
2
    <div class="panel-body">
5
        #if($deals.isEmpty())
3
        #if($deals.isEmpty())
6
            <p class="text-muted">No hot deals for this brand yet. Add the first one above.</p>
4
            <p class="text-muted">No hot deals found.</p>
7
        #else
5
        #else
8
            <table class="table table-striped table-hover">
6
            <table class="table table-striped table-hover">
9
                <thead>
7
                <thead>
10
                    <tr>
8
                    <tr>
-
 
9
                        <th>Brand</th>
11
                        <th>Model</th>
10
                        <th>Model</th>
12
                        <th>Status</th>
11
                        <th>Status</th>
13
                        <th style="width:150px;">Start Date</th>
12
                        <th style="width:135px;">Start Date</th>
14
                        <th style="width:150px;">End Date</th>
13
                        <th style="width:135px;">End Date</th>
15
                        <th style="width:90px;">Warranty</th>
14
                        <th style="width:85px;">Warranty</th>
16
                        <th style="width:120px;">Condition</th>
15
                        <th style="width:115px;">Condition</th>
17
                        <th style="width:80px;">Activated</th>
16
                        <th style="width:75px;">Activated</th>
18
                        <th style="width:80px;">Finance</th>
17
                        <th style="width:75px;">Finance</th>
19
                        <th style="width:80px;">Affordability</th>
18
                        <th style="width:75px;">Affordability</th>
20
                        <th>Added By</th>
19
                        <th>Added By</th>
21
                        <th style="width:160px;">Action</th>
20
                        <th style="width:150px;">Action</th>
22
                    </tr>
21
                    </tr>
23
                </thead>
22
                </thead>
24
                <tbody>
23
                <tbody>
25
                    #foreach($deal in $deals)
24
                    #foreach($deal in $deals)
26
                        <tr data-deal-id="$deal.getId()">
25
                        <tr data-deal-id="$deal.getId()">
-
 
26
                            <td>$!deal.getBrandName()</td>
27
                            <td>$!deal.getCatalogDescription()</td>
27
                            <td>$!deal.getCatalogDescription()</td>
28
                            <td>
28
                            <td>
29
                                #if($deal.getStatus() == "ACTIVE")
29
                                #if($deal.getStatus() == "ACTIVE")
30
                                    <span class="label label-success">Active</span>
30
                                    <span class="label label-success">Active</span>
31
                                #elseif($deal.getStatus() == "SCHEDULED")
31
                                #elseif($deal.getStatus() == "SCHEDULED")
Line 71... Line 71...
71
                    #end
71
                    #end
72
                </tbody>
72
                </tbody>
73
            </table>
73
            </table>
74
        #end
74
        #end
75
    </div>
75
    </div>
-
 
76
    <div class="panel-footer" style="display:flex;align-items:center;justify-content:space-between;">
-
 
77
        <span class="text-muted">$total deal(s) &middot; Page $page of $pages</span>
-
 
78
        <span>
-
 
79
            <button class="btn btn-default btn-sm hot-deal-page-prev" type="button" #if($page <= 1)disabled#end>&laquo; Prev</button>
-
 
80
            <button class="btn btn-default btn-sm hot-deal-page-next" type="button" #if($page >= $pages)disabled#end>Next &raquo;</button>
-
 
81
        </span>
-
 
82
    </div>
76
</div>
83
</div>