Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24876 tejbeer 1
<script type="text/javascript">
26491 amit.gupta 2
	var customRetailers = ${customRetailers};
24876 tejbeer 3
	$("#FofoId").typeahead({
4
	  source: customRetailers,
5
	  autoSelect: true,
6
	  displayText:function(item){return item.businessName + "-" + item.address.city;},
7
	  afterSelect:	function(currentItem){
8
	  					currentFofoId = currentItem.partnerId;
9
	  				}
10
	});
11
 
26491 amit.gupta 12
	$('#businessDate').daterangepicker(getSingleDatePicker(true), dateRangeCallback);
13
 
27067 amit.gupta 14
	$('button.btnuploadcns').on('click', function() {
15
		var fileSelector = $('#uploadcns')[0];
16
		if(fileSelector != undefined && fileSelector.files[0] != undefined) {
17
			if(confirm("Confirm Upload?")) {
18
				doAjaxUploadRequestHandler("${rc.contextPath}/wallet/upload", "POST", fileSelector.files[0], function(response){
19
					if(response) {
20
						alert("Content updated successfully");
21
					}
22
				});
23
			}
24
		} else {
25
			alert("Please upload file!");
26
		}
27
		return false;
28
	});
29
 
24876 tejbeer 30
</script>
31
 
32
<section class="wrapper">            
33
	<div class="row">
34
		<div class="col-lg-12">
35
			<h3 class="page-header"><i class="icon_document_alt"></i>Wallet-Edit</h3>
36
			<ol class="breadcrumb">
37
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
38
				<li><i class="icon_document_alt"></i>CREDIT/DEBIT</li>
39
			</ol>
40
		</div>
41
	</div>
42
 
43
	<div style="background:white;background-color:white;padding:10px;">
27067 amit.gupta 44
		<form class="form-horizontal" style="display:inline-block">
45
				<label class="control-label col-sm-2" for="excelfile">Bulk Credit/Debit:</label>
46
			    <div class="col-lg-3">
47
			    	<div class="input-group">
48
			    		<input class="form-control" type="file" id="uploadcns" name="uploadcns" value="Upload File">
49
			    		<span class="input-group-btn">
50
				    		<button class="btn btn-default btnuploadcns">
51
							    Uplaod
52
							</button>
53
						</span>
54
					</div>
55
			    </div>
56
		    	<!--<div class="col-lg-2">
57
		    		<a class="btn btn-default" href="/content/template.csv">
58
					    Download Tempate
59
					</a>-->
60
		    	</div>
61
		    </form>
62
	</div>
63
	<div style="background:white;background-color:white;padding:10px;">
24876 tejbeer 64
		<h4 class="modelHeaderCustom" style="font-size:22px;">Credit/Debit</h4>
24992 tejbeer 65
		<form id = "wallet-form" >
24876 tejbeer 66
			<div class = "row">
67
				<div class="col-lg-2 form-group">
24897 amit.gupta 68
			    	<input id="FofoId" type="text" class="typeahead form-control form-control-sm" placeholder="Partner Name" data-provide="typeahead" 
69
			    	 #if(${retailerName}) value="${retailerName}" #end
70
			    	 autocomplete="off"/>
71
 
72
			    </div>
73
			    <div class="col-lg-2 form-group">
74
					<button class="btn btn-primary fetchTransactions" type="button">Search Transactions</button>
75
				</div>
76
			</div>
77
 
78
			<div class = "row">
79
				<div class="col-lg-2 form-group">
24876 tejbeer 80
					<select class="form-control input-sm" id = "reference-type" name = "reference-type" placeholder="Reference Type">
81
						<option value="" disabled selected>Reference Type</option>
82
						#foreach($referenceType in $referenceTypes)
26517 amit.gupta 83
	             			<option value="${referenceType.getValue()}">$referenceType</option>
24876 tejbeer 84
	             		#end
85
	             	</select>
86
				</div>
87
 
88
				<div class="col-lg-2 form-group">
89
				   	<input placeholder="Reference Id" id="reference_id" name="reference_id" type="text" value="" class="form-control input-sm">
90
				</div>
91
 
92
				<div class="col-lg-2 form-group">
93
					<button class="btn btn-primary referenceSearch" type="button">Search</button>
94
				</div>
95
			</div>
24897 amit.gupta 96
 
97
			<div class = "row">
26491 amit.gupta 98
				<div class="col-lg-1 form-group">
24876 tejbeer 99
					<select class="form-control input-sm" id = "transaction-type" name = "transaction-type" placeholder="Transaction Type">
100
						<option value="" disabled selected>Transaction Type</option>
101
						#foreach($transactionType in $transactionTypes)
102
	             			<option value="$transactionType">$transactionType</option>
103
	             		#end
104
	             	</select>
105
				</div>
106
 
26491 amit.gupta 107
				<div class="col-lg-1 form-group">
24876 tejbeer 108
				   	<input placeholder="Amount" id="amount" name="amount" type="text" value="" class="form-control input-sm">
109
				</div>
110
 
26491 amit.gupta 111
 
112
				<div class="col-lg-1 form-group">
113
				   	<input placeholder="Business date" id="businessDate" name="businessDate" type="text" value="" class="form-control input-sm">
114
				</div>
115
 
24876 tejbeer 116
				<div class="col-lg-2 form-group">
117
				   	<input placeholder="Description" id="description" name="description" type="text" value="" class="form-control input-sm">
118
				</div>
119
 
120
 
26491 amit.gupta 121
				<div class="col-lg-1 form-group">
24876 tejbeer 122
					<button class="btn btn-primary transactionSubmit" type="button">Submit</button>
123
				</div>
124
				</div>
125
		</div>
126
	</div>
127
	</div>
24992 tejbeer 128
	</form>
24876 tejbeer 129
 
130
	     <div class="wallet-history-container">
131
		</div>	 
132
</section>
133