Subversion Repositories SmartDukaan

Rev

Rev 28272 | Go to most recent revision | 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
 
24
 
28277 tejbeer 25
<form id="brand-limit-container" style="width: 30%;">
26
	<table class="table table-striped brands-container">
27
		<thead>
28272 tejbeer 28
 
28277 tejbeer 29
			<h3>Set Limit Of $brand For All Partners</h3>
30
			<tr>
31
				<th>Brand</th>
32
				<th>New Limit</th>
33
				<th>Submit</th>
34
			</tr>
35
 
36
		</thead>
37
 
38
		<tbody>
39
			<div class="row">
40
				#if($brandLimit)
41
				<tr>
42
 
43
					<td value="$brandLimit.getBrandName()" id="inputBrand">$brandLimit.getBrandName()</td>
44
					<td><input type="text" value="$brandLimit.getBrandLimit()"
45
						class="form-control" name="inputLimit" placeholder="Limit"
46
						required></td>
47
					<td><button type="button"
48
							class="btn btn-primary brands-update"
49
							data-brand="$brandLimit.getBrandName()">submit</button></td>
50
				</tr>
51
				#else
52
				<tr>
53
 
54
					<td value="$brand" id="inputBrand">$brand</td>
55
					<td><input type="text" class="form-control" name="inputLimit"
56
						placeholder="Limit" required></td>
57
					<td><button type="button"
58
							class="btn btn-primary brands-update" data-brand="$brand">submit</button></td>
59
				</tr>
60
 
61
				#end
28272 tejbeer 62
			</div>
63
 
64
 
65
 
28277 tejbeer 66
		</tbody>
67
	</table>
28272 tejbeer 68
 
28277 tejbeer 69
</form>
70
 
71
<form id="brand-limit-partners" style="width: 60%;">
72
	<table class="table table-border table-condensed table-bordered"
73
		id="brand-dataTable-limit" style="width: 100%;">
74
 
75
		<thead class="row">
76
			<h3 class="ribbon-highlight">All Partner List Of $brand</h3>
77
			<tr>
78
				<th>Brand</th>
79
				<th>Partner Id</th>
80
				<th>Limit</th>
81
				<th>New Limit</th>
82
				<th>Submit</th>
83
			</tr>
84
 
85
		</thead>
86
 
87
		<tbody>
88
			#if($brandLimit) #foreach($customRetailers in
89
			$customRetailers.entrySet())
90
			<tr>#parse("brands-limit-row-mapping.vm")
91
 
92
			</tr>
93
			#end #end
94
 
95
 
96
		</tbody>
97
	</table>
98
 
99
</form>
100
 
28272 tejbeer 101
<script type="text/javascript">
28277 tejbeer 102
	$(document).ready(function() {
28272 tejbeer 103
 
28277 tejbeer 104
		if ($.fn.dataTable.isDataTable('#brand-dataTable-limit')) {
105
			table = $('#example').DataTable();
106
		} else {
107
			table = $('#brand-dataTable-limit').DataTable({
108
				paging : false
109
			});
110
		}
28272 tejbeer 111
 
28277 tejbeer 112
	});
113
</script>
28272 tejbeer 114
 
115