Subversion Repositories SmartDukaan

Rev

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