Subversion Repositories SmartDukaan

Rev

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

<style>
    #offerItemTable td, #offerItemTable th {
        padding: 2px;
    }
</style>
<script type="text/javascript">
    $(function () {
             $('input[name="expiredEndDate"]').daterangepicker(getSingleDatePicker());
              $('input[name="offerItemDuration"]').daterangepicker(getRangedDatePicker());
   
    });


    $(document).ready(function () {


        var dtable = $('#offer-item-table').DataTable({
         
        });


        $(function(){
            getItemAheadOptions($("#catalog-search-text"),false,function(selectedItem){
                        currentItem = selectedItem.catalogId;
                        console.log(currentItem);
                 });    
                });

  

    });

</script>
 <div class="modal-header">
     <button type="button" class="close" data-dismiss="modal">&times;</button>
     <h4 class="modal-title">Customer Offer Item
     </h4>
 </div>

  <div class="modal-body" style="height:400px;overflow:auto;">
      <div class="row" style="margin: 0;">
          <table style="width: 100%;" id="offerItemTable">
              <tr>
                  <td>
                      <div class="form-group">
                          <label for="Item">Item</label>
                          <input type="text" class="typeahead form-control" id="catalog-search-text" name="Item"
                                 data-provide="typeahead" autocomplete="off" value="" style="
                        width: 200px;" placeholder="Search for product..."/>
                      </div>
                  </td>
                  <td>
                      <div class="form-group">
                          <label for="offerItemDuration">Duration</label>
                          <input placeholder="Set Duration" name="offerItemDuration" id="offerItemDuration"
                                 name="dateRange"
                                 type="text" value="" class="form-control input-sm">
                      </div>
                  </td>
                  <td>
                      <div class="form-group">
                          <label for="schemePayout">Scheme Contribution</label>
                          <input placeholder="Scheme Payout" name="schemePayout" id="schemePayout"
                                 type="text" value="" class="form-control input-sm">
                      </div>
                  </td>
                  <td>
                      <div class="form-group">
                          <label for="dealerPayout">Dealer Contribution</label>
                          <input placeholder="Dealer Payout" name="dealerPayout" id="dealerPayout"
                                 type="text" value="" class="form-control input-sm">
                      </div>
                  </td>
                  <td>
                      <div class="form-group">
                          <label for="offerType">Offer Type</label>
                          <select class="form-control input-sm" name="offerType" id="offerType">
                              <option value="">Choose</option>
                              #foreach($type in $offerTypes)
                                  <option value="$type">$type</option>
                              #end
                          </select>
                      </div>
                  </td>
                  <td>
                      <div class="form-group" style="margin-top:25px;">

                          <input type="button" class="btn btn-default addOfferItem" data-offerid="$offerId"
                                 value="Create">
                      </div>
                  </td>
              </tr>
          </table>
    </div>

    <div class = "row">
    <div class="col-lg-12">
        <table class="table table-border table-condensed table-bordered" id="offer-item-table" style="width:100%">

            <thead style="background:#F5F5F5;">

            <tr>
                <th>Id</th>
                <th>Catalog Id</th>
                <th>Item Name</th>
                <th>Scheme Payout</th> 
                <th>Dealer Payout</th>
                <th>Offer Type</th>
                <th>Start Date</th>
                <th>Expired Date</th>
                <th>Mark Expired</th>

            </tr>
            </thead>
            <tbody>
                #foreach($coi in $customerOfferItems )

                <tr>
                
                    #parse("customer-offer-item-index.vm")
                  
                 </tr>

                #end

            </tbody>

        </table>
    </div>
  </div>
  </div>
  
        <div class="modal-footer">
      <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
        </div>