Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28272 tejbeer 1
 
28277 tejbeer 2
<style>
3
.ribbon-highlight {
4
	position: relative;
5
	margin: 0.1em;
28272 tejbeer 6
}
28277 tejbeer 7
 
8
.ribbon-highlight:before {
9
	content: "";
10
	z-index: -1;
11
	left: -0.5em;
12
	top: 0.1em;
13
	border-width: 0.5em;
14
	border-style: solid;
15
	border-color: lightgreen;
16
	position: absolute;
17
	width: 100%;
18
	border-left-color: transparent;
19
	border-right-color: transparent;
28272 tejbeer 20
}
28277 tejbeer 21
</style>
28272 tejbeer 22
 
23
 
30029 manish 24
<div class="row">
25
<form id="brand-limit-container">
28272 tejbeer 26
 
30029 manish 27
<div class="col-lg-5">
28277 tejbeer 28
	<table class="table table-striped brands-container">
29
		<thead>
28272 tejbeer 30
 
28277 tejbeer 31
			<h3>Set Limit Of $brand For All Partners</h3>
32
			<tr>
33
				<th>Brand</th>
34
				<th>New Limit</th>
35
				<th>Submit</th>
36
			</tr>
37
 
38
		</thead>
39
 
40
		<tbody>
41
			<div class="row">
42
				#if($brandLimit)
43
				<tr>
44
 
45
					<td value="$brandLimit.getBrandName()" id="inputBrand">$brandLimit.getBrandName()</td>
46
					<td><input type="text" value="$brandLimit.getBrandLimit()"
47
						class="form-control" name="inputLimit" placeholder="Limit"
48
						required></td>
49
					<td><button type="button"
50
							class="btn btn-primary brands-update"
51
							data-brand="$brandLimit.getBrandName()">submit</button></td>
52
				</tr>
53
				#else
54
				<tr>
55
 
56
					<td value="$brand" id="inputBrand">$brand</td>
57
					<td><input type="text" class="form-control" name="inputLimit"
58
						placeholder="Limit" required></td>
59
					<td><button type="button"
60
							class="btn btn-primary brands-update" data-brand="$brand">submit</button></td>
61
				</tr>
62
 
63
				#end
28272 tejbeer 64
			</div>
65
 
66
 
67
 
28277 tejbeer 68
		</tbody>
69
	</table>
30029 manish 70
</div>
71
<div class="col-lg-5">
72
	<table class="table table-striped brands-container">
73
		<thead>
28272 tejbeer 74
 
30029 manish 75
			<h3>Set Stock Limit Of $brand For All Partners</h3>
76
			<tr>
77
				<th>Brand</th>
78
				<th>New stock Limit</th>
79
				<th>Submit</th>
80
			</tr>
81
 
82
		</thead>
83
 
84
		<tbody>
85
			<div class="row">
86
				#if($brandLimit)
87
				<tr>
88
 
89
					<td value="$brandLimit.getBrandName()" id="inputBrand">$brandLimit.getBrandName()</td>
90
					<td><input type="text" value="$brandLimit.getStockLimit()"
91
						class="form-control" name="stockLimit" placeholder="Limit"
92
						required></td>
93
					<td><button type="button"
94
							class="btn btn-primary set-stock-limit"
95
							data-brand="$brandLimit.getBrandName()">submit</button></td>
96
				</tr>
97
				#else
98
				<tr>
99
 
100
					<td value="$brand" id="inputBrand">$brand</td>
101
					<td><input type="text" class="form-control" name="stockLimit"
102
						placeholder="Limit" required></td>
103
					<td><button type="button"
104
							class="btn btn-primary set-stock-limit" data-brand="$brand">submit</button></td>
105
				</tr>
106
 
107
				#end
108
			</div>
109
 
110
 
111
 
112
		</tbody>
113
	</table>
114
</div>
115
 
28277 tejbeer 116
</form>
30029 manish 117
</div>
28277 tejbeer 118
 
30029 manish 119
 
28277 tejbeer 120
<form id="brand-limit-partners" style="width: 60%;">
121
	<table class="table table-border table-condensed table-bordered"
122
		id="brand-dataTable-limit" style="width: 100%;">
123
 
124
		<thead class="row">
125
			<h3 class="ribbon-highlight">All Partner List Of $brand</h3>
126
			<tr>
127
				<th>Brand</th>
128
				<th>Partner Id</th>
129
				<th>Limit</th>
130
				<th>New Limit</th>
30029 manish 131
				<th>Stock Limit</th>
132
				<th>New Min Stock Limit</th>
133
 
28277 tejbeer 134
				<th>Submit</th>
135
			</tr>
136
 
137
		</thead>
138
 
139
		<tbody>
140
			#if($brandLimit) #foreach($customRetailers in
141
			$customRetailers.entrySet())
142
			<tr>#parse("brands-limit-row-mapping.vm")
143
 
144
			</tr>
145
			#end #end
146
 
147
 
148
		</tbody>
149
	</table>
150
 
151
</form>
152
 
28272 tejbeer 153
<script type="text/javascript">
28277 tejbeer 154
	$(document).ready(function() {
28272 tejbeer 155
 
28277 tejbeer 156
		if ($.fn.dataTable.isDataTable('#brand-dataTable-limit')) {
157
			table = $('#example').DataTable();
158
		} else {
159
			table = $('#brand-dataTable-limit').DataTable({
160
				paging : false
161
			});
162
		}
28272 tejbeer 163
 
28277 tejbeer 164
	});
165
</script>
28272 tejbeer 166
 
167