Subversion Repositories SmartDukaan

Rev

Rev 28277 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28272 tejbeer 1
 
2
 <style>
3
	 .ribbon-highlight{
4
  position:relative;
5
  margin:0.1em;
6
}
7
.ribbon-highlight:before{
8
  content:"";
9
  z-index:-1;
10
  left:-0.5em;
11
  top:0.1em;
12
  border-width:0.5em;
13
  border-style:solid;
14
  border-color:lightgreen;
15
  position:absolute;
16
  width:100%;
17
  border-left-color:transparent;
18
  border-right-color:transparent;
19
}
20
 
21
	  </style>
22
 
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 $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
56
			</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
 
94
	  </form>  	
95
 
96
<script type="text/javascript">
97
 
98
    $(document).ready(function () {
99
 
100
 
101
 
102
 
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
 
113
          });
114
 
115
          </script>
116
 
117
 
118