Subversion Repositories SmartDukaan

Rev

Rev 26719 | Rev 28556 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26674 tejbeer 1
<style>
27875 amit.gupta 2
    .table-striped > tbody > tr:nth-child(odd) > td {
3
        background: white;
4
        background-color: white;
5
    }
6
 
7
    .table-striped > tbody > tr:nth-child(even) > td {
8
        background: white;
9
        background-color: white;
10
    }
11
 
12
    .table-striped > tbody > tr:hover > td,
13
    .table-striped > tbody > tr:hover {
14
        background-color: #e98c8f;
15
        color: white;
16
    }
17
 
18
    .btn:hover {
19
        color: grey;
20
        text-decoration: none;
21
    }
22
 
23
    .btn-primary:hover {
24
        color: grey;
25
        text-decoration: none;
26
    }
27
 
28
    .sale-details {
29
        cursor: pointer;
30
    }
26674 tejbeer 31
</style>
32
 
33
<section class="wrapper">
27875 amit.gupta 34
    <div class="row">
35
        <div class="col-lg-12">
36
            <h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
37
            <ol class="breadcrumb">
38
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
39
                <li><i class="icon_document_alt"></i>LISTINGS</li>
40
            </ol>
41
        </div>
42
    </div>
43
 
44
    <table style="Width:100%">
45
 
46
        <td align="left" style="Width:20%">
26719 tejbeer 47
        </td>
27875 amit.gupta 48
 
49
 
26719 tejbeer 50
        <td style="Width:80%">
27875 amit.gupta 51
 
52
            <div id="offer-search">
53
                <div class="row">
54
                    <div class="col-lg-12">
55
                        <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
56
                            <div class="input-group">
57
                                <input type="month" class="form-control" id="yearmonth"
58
                                       placeholder="YYYY-MM" />
59
                                <span class="input-group-btn">
60
                      <button class="btn btn-primary submit" id="yearmonth-submit" type="button">Go!</button>
26719 tejbeer 61
                    </span>
27875 amit.gupta 62
                            </div>
63
                        </div>
64
                    </div>
26719 tejbeer 65
                </div>
27875 amit.gupta 66
            </div>
67
        </td>
68
    </table>
69
    <div id="offer-listings-table">
70
        <div class="row">
71
            <div class="col-lg-12">
72
                <table class="table table-striped table-advance table-hover">
73
                    <tbody>
74
                    <tr>
75
                        <th>Id</th>
76
                        <th>Name</th>
77
                        <th>Target Type</th>
78
                        <th>Scheme Type</th>
79
                        <th>Brand %</th>
80
                        <th>Sellin %</th>
81
                        <th>Partner Criteria</th>
82
                        <th>Item Criteria</th>
83
                        <th>Start</th>
84
                        <th>End</th>
85
                        <th>Created</th>
86
                        <th>Actions</th>
87
                    </tr>
88
                    #if(!$offers.isEmpty())
89
                    #foreach( $offer in $offers )
90
                    <tr class="offer-details" data-offerid="$offer.getId()">
91
                        <td>$offer.getId()</td>
92
                        <td><a class="mk_offer_detail" href="javascript:void(0)">$offer.getName()</a></td>
93
                        <td>$offer.getTargetType()</td>
94
                        <td>$offer.getSchemeType()</td>
95
                        <td>$offer.getBrandShareTerms()</td>
96
                        <td>$offer.getSellinPercentage()</td>
97
                        <td>$offer.getPartnerCriteriaString()</td>
98
                        <td>$offer.getItemCriteriaString()</td>
99
                        <td>$offer.getStartDate().format($dateFormatter)</td>
100
                        <td>$offer.getEndDate().format($dateFormatter)</td>
101
                        <td>$offer.getCreatedOn().format($dateTimeFormatter)</td>
102
                        <td><a class="download_offer" href="javascript:void(0)">Download Report</a></td>
103
                    </tr>
104
                    #end
105
                    #else
106
                    <tr>
107
                        <td colspan="13" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
108
                    </tr>
109
                    #end
110
                    </tbody>
111
                </table>
112
            </div>
26719 tejbeer 113
        </div>
26674 tejbeer 114
    </div>
27875 amit.gupta 115
 
116
	<div  class="modal" id="offerDescription">
117
		<div class="modal-dialog modal-lg">
118
		    <div class="modal-content" >
119
		    </div>
26719 tejbeer 120
	    </div>
27875 amit.gupta 121
	</div>
122
</section>
123
 
124
<script type="text/javascript">
125
	$(function(){
126
		$("#offerDescription").modal('hide');
127
		$('#offerDescription').on('hide.bs.modal', function () {
128
		  $(this).find(".modal-content").html("");
129
		});
130
	});
131
</script>
132
 
26719 tejbeer 133
 
134