Subversion Repositories SmartDukaan

Rev

Rev 27875 | Rev 29680 | 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>
28556 amit.gupta 78
                        <th>Payout Type</th>
27875 amit.gupta 79
                        <th>Scheme Type</th>
80
                        <th>Brand %</th>
81
                        <th>Sellin %</th>
82
                        <th>Partner Criteria</th>
83
                        <th>Item Criteria</th>
84
                        <th>Start</th>
85
                        <th>End</th>
86
                        <th>Created</th>
87
                        <th>Actions</th>
88
                    </tr>
89
                    #if(!$offers.isEmpty())
90
                    #foreach( $offer in $offers )
91
                    <tr class="offer-details" data-offerid="$offer.getId()">
92
                        <td>$offer.getId()</td>
93
                        <td><a class="mk_offer_detail" href="javascript:void(0)">$offer.getName()</a></td>
94
                        <td>$offer.getTargetType()</td>
28556 amit.gupta 95
                        <td>$offer.getPayoutType()</td>
27875 amit.gupta 96
                        <td>$offer.getSchemeType()</td>
97
                        <td>$offer.getBrandShareTerms()</td>
98
                        <td>$offer.getSellinPercentage()</td>
99
                        <td>$offer.getPartnerCriteriaString()</td>
100
                        <td>$offer.getItemCriteriaString()</td>
101
                        <td>$offer.getStartDate().format($dateFormatter)</td>
102
                        <td>$offer.getEndDate().format($dateFormatter)</td>
103
                        <td>$offer.getCreatedOn().format($dateTimeFormatter)</td>
104
                        <td><a class="download_offer" href="javascript:void(0)">Download Report</a></td>
105
                    </tr>
106
                    #end
107
                    #else
108
                    <tr>
109
                        <td colspan="13" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
110
                    </tr>
111
                    #end
112
                    </tbody>
113
                </table>
114
            </div>
26719 tejbeer 115
        </div>
26674 tejbeer 116
    </div>
27875 amit.gupta 117
 
118
	<div  class="modal" id="offerDescription">
119
		<div class="modal-dialog modal-lg">
120
		    <div class="modal-content" >
121
		    </div>
26719 tejbeer 122
	    </div>
27875 amit.gupta 123
	</div>
124
</section>
125
 
126
<script type="text/javascript">
127
	$(function(){
128
		$("#offerDescription").modal('hide');
129
		$('#offerDescription').on('hide.bs.modal', function () {
130
		  $(this).find(".modal-content").html("");
131
		});
132
	});
133
</script>
134
 
26719 tejbeer 135
 
136