Subversion Repositories SmartDukaan

Rev

Rev 28272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28272 Rev 28277
Line 1... Line 1...
1
 
1
 
2
 <style>
2
<style>
3
	 .ribbon-highlight{
3
.ribbon-highlight {
4
  position:relative;
4
	position: relative;
5
  margin:0.1em;
5
	margin: 0.1em;
6
}
6
}
-
 
7
 
7
.ribbon-highlight:before{
8
.ribbon-highlight:before {
8
  content:"";
9
	content: "";
9
  z-index:-1;
10
	z-index: -1;
10
  left:-0.5em;
11
	left: -0.5em;
11
  top:0.1em;
12
	top: 0.1em;
12
  border-width:0.5em;
13
	border-width: 0.5em;
13
  border-style:solid;
14
	border-style: solid;
14
  border-color:lightgreen;
15
	border-color: lightgreen;
15
  position:absolute;
16
	position: absolute;
16
  width:100%;
17
	width: 100%;
17
  border-left-color:transparent;
18
	border-left-color: transparent;
18
  border-right-color:transparent;
19
	border-right-color: transparent;
19
}
20
}
-
 
21
</style>
20
 
22
 
21
	  </style>
-
 
22
 
23
 
23
 
24
 
-
 
25
<form id="brand-limit-container" style="width: 30%;">
-
 
26
	<table class="table table-striped brands-container">
-
 
27
		<thead>
-
 
28
 
-
 
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>
24
 
60
 
25
	<form id ="brand-limit-container" style="width: 30%;">     
-
 
26
<table class="table table-striped brands-container" >
-
 
27
	<thead>
-
 
28
	
-
 
29
	<h3>Set Limit  Of $brandLimit.getBrandName() 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()"class="form-control" name="inputLimit"   placeholder="Limit" required></td>
-
 
45
                      <td><button type="button" class="btn btn-primary brands-update" data-brand="$brandLimit.getBrandName()">submit</button></td>
-
 
46
			    </tr>
-
 
47
			    #else
-
 
48
			     <tr> 
-
 
49
			        
-
 
50
	                  <td value="$brand" id ="inputBrand">$brand</td>
-
 
51
                      <td><input type="text" class="form-control" name="inputLimit"   placeholder="Limit" required></td>
-
 
52
                      <td><button type="button" class="btn btn-primary brands-update" data-brand="$brand">submit</button></td>
-
 
53
			    </tr>
-
 
54
			    
-
 
55
			    #end
61
				#end
56
			</div>
62
			</div>
57
					
-
 
58
		
-
 
59
					
-
 
60
			</tbody>
-
 
61
		</table>
-
 
62
 
-
 
63
	  </form> 
-
 
64
	    
-
 
65
<form id ="brand-limit-partners" style="width: 60%;">      
-
 
66
        <table class="table table-border table-condensed table-bordered" id="brand-dataTable-limit" style="width:100%;">
-
 
67
 
-
 
68
            <thead class="row">
-
 
69
            	<h3 class="ribbon-highlight"> All Partner List Of $brandLimit.getBrandName()</h3>
-
 
70
					 <tr>
-
 
71
						 <th>Brand</th>
-
 
72
						 <th>Partner Id</th>
-
 
73
						 <th>Limit</th>
-
 
74
						 <th>New Limit</th>
-
 
75
						 <th>Submit</th>
-
 
76
					</tr>
-
 
77
					
-
 
78
			</thead>
-
 
79
							    
-
 
80
			<tbody>
-
 
81
					#if($brandLimit)
-
 
82
	      #foreach($customRetailers in $customRetailers.entrySet())
-
 
83
                <tr>
-
 
84
                   #parse("brands-limit-row-mapping.vm")
-
 
85
 
-
 
86
                </tr>
-
 
87
                #end
-
 
88
		 #end
-
 
89
		
-
 
90
					
-
 
91
			</tbody>
-
 
92
		</table>
-
 
93
 
63
 
-
 
64
 
-
 
65
 
-
 
66
		</tbody>
-
 
67
	</table>
-
 
68
 
94
	  </form>  	
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>
95
	
100
 
96
<script type="text/javascript">
101
<script type="text/javascript">
97
	 
-
 
98
    $(document).ready(function () {
102
	$(document).ready(function() {
99
 
-
 
100
 
103
 
-
 
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
		}
101
 
111
 
-
 
112
	});
-
 
113
</script>
102
 
114
 
103
if ( $.fn.dataTable.isDataTable( '#brand-dataTable-limit' ) ) {
-
 
104
    table = $('#example').DataTable();
-
 
105
}
-
 
106
else {
-
 
107
    table = $('#brand-dataTable-limit').DataTable( {
-
 
108
        paging: false
-
 
109
    } );
-
 
110
}
-
 
111
        
-
 
112
 
115
 
113
          });
-
 
114
          
-
 
115
          </script>
-
 
116
	
-
 
117
	  
-
 
118
	
-
 
119
116