Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
31147 tejbeer 1
 
2
<script type="text/javascript">
3
    $(function () {
4
             $('input[name="expiredEndDate"]').daterangepicker(getSingleDatePicker());
5
              $('input[name="offerItemDuration"]').daterangepicker(getRangedDatePicker());
6
 
7
    });
8
 
9
 
10
    $(document).ready(function () {
11
 
12
 
13
        var dtable = $('#offer-item-table').DataTable({
14
 
15
        });
16
 
17
 
18
	$(function(){
19
            getItemAheadOptions($("#catalog-search-text"),false,function(selectedItem){
20
		 	currentItem = selectedItem.catalogId;
21
		 	console.log(currentItem);
22
		 });	
23
		});
24
 
25
 
26
 
27
    });
28
 
29
</script>
30
 <div class="modal-header">
31
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
32
	        <h4 class="modal-title">Customer Offer Item
33
	        </h4>
34
       </div>
35
  <div class="modal-body" style="height:400px;overflow:auto;">
36
 
37
      <div class="row">
38
 
39
 
40
 
41
      <div class="form-group col-lg-3">
42
            <label for="Item">Item</label>
43
 
44
                     <input type="text" class="typeahead form-control" id="catalog-search-text" name="Item" data-provide="typeahead" autocomplete="off" value="" style ="
45
                        width: 200px;" placeholder="Search for product..."/>
46
 
47
 
48
        </div>
49
 
50
       <div class="form-group col-lg-2">
51
            <label for="offerItemDuration">Duration</label>
52
            <input placeholder="Set Duration" name="offerItemDuration" id="offerItemDuration" name="dateRange"
53
                   type="text" value="" class="form-control input-sm">
54
        </div>
55
        <div class="form-group col-lg-2">
56
            <label for="schemePayout">Scheme Payout</label>
57
            <input placeholder="Scheme Payout" name="schemePayout" id="schemePayout"
58
                   type="text" value="" class="form-control input-sm">
59
        </div>
60
 
61
        <div class="form-group col-lg-2">
62
            <label for="dealerPayout">Dealer Payout</label>
63
            <input placeholder="Dealer Payout" name="dealerPayout" id="dealerPayout"
64
                   type="text" value="" class="form-control input-sm">
65
        </div>
66
 
67
 
68
        <div class="form-groupcol-lg-2" style="margin-top:20px">
69
 
70
            <input type="button" class="btn btn-default addOfferItem"  data-offerid="$offerId"
71
                   value="Create">
72
        </div>
73
    </div>
74
    <div class = "row">
75
    <div class="col-lg-12">
76
        <table class="table table-border table-condensed table-bordered" id="offer-item-table" style="width:100%">
77
 
78
            <thead style="background:#F5F5F5;">
79
 
80
            <tr>
81
                <th>Id</th>
82
                <th>Catalog Id</th>
83
                <th>Item Name</th>
31151 tejbeer 84
                <th>Scheme Payout</th> 
85
                <th>Dealer Payout</th>  
31147 tejbeer 86
                <th>Start Date</th>
87
                <th>Expired Date</th>
88
                <th>Mark Expired</th>
89
 
90
            </tr>
91
            </thead>
92
            <tbody>
93
                #foreach($coi in $customerOfferItems )
94
 
95
                <tr>
96
 
97
                    #parse("customer-offer-item-index.vm")
98
 
99
                 </tr>
100
 
101
                #end
102
 
103
            </tbody>
104
 
105
        </table>
106
    </div>
107
  </div>
108
  </div>
109
 
110
  	<div class="modal-footer">
111
      <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
112
	</div>