Subversion Repositories SmartDukaan

Rev

Rev 33797 | Details | Compare with Previous | Last modification | View Log | RSS feed

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