| 24159 |
tejbeer |
1 |
<style>
|
|
|
2 |
.row{
|
|
|
3 |
margin:0 auto;
|
|
|
4 |
}
|
|
|
5 |
.modal-content{
|
|
|
6 |
background : white;
|
|
|
7 |
}
|
|
|
8 |
.modelHeaderCustom{
|
|
|
9 |
font-size:14px;
|
|
|
10 |
font-weight:bold;
|
|
|
11 |
}
|
|
|
12 |
.border-highlight{
|
|
|
13 |
border : 3px solid red;
|
|
|
14 |
}
|
|
|
15 |
hr{
|
|
|
16 |
background-color:#007aff;
|
|
|
17 |
border:none;
|
|
|
18 |
height:1px;
|
|
|
19 |
background:#007aff;
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
23 |
background: #f2f2f2;
|
|
|
24 |
background-color: #f2f2f2;
|
|
|
25 |
}
|
|
|
26 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
27 |
background: #f2f2f2;
|
|
|
28 |
background-color: #f2f2f2;
|
|
|
29 |
}
|
|
|
30 |
.control-label {
|
|
|
31 |
margin-top: 0;
|
|
|
32 |
margin-bottom: 0;
|
|
|
33 |
padding-top: 7px;
|
|
|
34 |
font-weight:bold;
|
|
|
35 |
font-size:14px;
|
|
|
36 |
}
|
|
|
37 |
.form-group{
|
|
|
38 |
border-bottom: 1px solid #eff2f7;
|
|
|
39 |
padding-bottom: 15px;
|
|
|
40 |
margin-bottom: 15px;
|
|
|
41 |
}
|
|
|
42 |
.right{
|
|
|
43 |
float:right;
|
|
|
44 |
}
|
|
|
45 |
.form-control{
|
|
|
46 |
color:black;
|
|
|
47 |
text-transform:uppercase;
|
|
|
48 |
}
|
|
|
49 |
.table-align-center{
|
|
|
50 |
text-align:center;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
</style>
|
|
|
54 |
|
|
|
55 |
<script type="text/javascript">
|
|
|
56 |
var customRetailers = ${customRetailers};
|
|
|
57 |
$("#partnerFofoId").typeahead({
|
|
|
58 |
source: customRetailers,
|
|
|
59 |
autoSelect: true,
|
|
|
60 |
displayText:function(item){return item.businessName + "-" + item.address.city;},
|
|
|
61 |
afterSelect: function(currentItem){
|
|
|
62 |
currentFofoId = currentItem.partnerId;
|
|
|
63 |
}
|
|
|
64 |
});
|
| 24429 |
tejbeer |
65 |
|
| 24159 |
tejbeer |
66 |
</script>
|
|
|
67 |
|
|
|
68 |
<section class="wrapper">
|
|
|
69 |
<div class="row">
|
|
|
70 |
<div class="col-lg-12">
|
|
|
71 |
<h3 class="page-header"><i class="icon_document_alt"></i>PROMOTER</h3>
|
|
|
72 |
<ol class="breadcrumb">
|
|
|
73 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
74 |
<li><i class="icon_document_alt"></i>CREATE</li>
|
|
|
75 |
</ol>
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
|
|
78 |
|
|
|
79 |
<form id="promoter-info-form">
|
|
|
80 |
<div id="promoter-details" style="background:white;background-color:white;padding:10px;">
|
|
|
81 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Promoter Information</h4>
|
|
|
82 |
<div>
|
|
|
83 |
<div class = "row">
|
|
|
84 |
<div class="col-lg-2 form-group">
|
|
|
85 |
<input placeholder="Name" id="promoterName" name="promoterName" type="text" value="" class="form-control input-sm">
|
|
|
86 |
</div>
|
|
|
87 |
|
|
|
88 |
<div class="col-lg-2 form-group">
|
|
|
89 |
<input placeholder="email" id="promoterEmail" name="promoterEmail" type="text" value="" class="form-control input-sm">
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<div class="col-lg-2 form-group">
|
|
|
93 |
<input placeholder="mobile" id="promoterMobile" maxlength="10" name="promoterMobile" type="number" value="" class="form-control input-sm">
|
|
|
94 |
</div>
|
|
|
95 |
|
|
|
96 |
<div class="col-lg-2">
|
|
|
97 |
<select class="form-control input-sm" id ="tag-listing-brands" placeholder="Brands" >
|
|
|
98 |
<option value="" disabled selected>Brands</option>
|
|
|
99 |
#foreach($brand in $brands)
|
|
|
100 |
<option value="$brand">$brand</option>
|
|
|
101 |
#end
|
|
|
102 |
</select>
|
|
|
103 |
</div>
|
|
|
104 |
<div class="col-lg-2">
|
|
|
105 |
<div class="input-group">
|
|
|
106 |
<input id="partnerFofoId" type="text" class="typeahead form-control form-control-sm" placeholder="Search Partner by Store" data-provide="typeahead"
|
|
|
107 |
#if(${retailerName}) value="${retailerName}" #end
|
|
|
108 |
autocomplete="off"/>
|
|
|
109 |
</div>
|
|
|
110 |
</div>
|
| 24429 |
tejbeer |
111 |
<div class="col-lg-2">
|
|
|
112 |
<select class="form-control input-sm" id ="sd-Portal-Access" placeholder="PortalAccess">
|
|
|
113 |
<option value="" disabled selected>Portal Access</option>
|
|
|
114 |
<option value="false">False</option>
|
|
|
115 |
<option value="true">True</option>
|
|
|
116 |
</select>
|
|
|
117 |
</div>
|
|
|
118 |
|
|
|
119 |
</div>
|
|
|
120 |
<div class = "row">
|
|
|
121 |
<div class="col-lg-2">
|
|
|
122 |
<input class="btn btn-primary create-promoter" type="button" value="Create/Update Promoter">
|
| 24159 |
tejbeer |
123 |
</div>
|
|
|
124 |
</div>
|
|
|
125 |
|
|
|
126 |
</div>
|
|
|
127 |
|
|
|
128 |
</div>
|
|
|
129 |
</div>
|
|
|
130 |
|
|
|
131 |
</form>
|
|
|
132 |
|
|
|
133 |
<div id="promoter-Info-table">
|
|
|
134 |
<div class="row">
|
|
|
135 |
<div class="col-lg-12">
|
|
|
136 |
<table class="table table-striped table-advance table-hover">
|
|
|
137 |
<tbody>
|
|
|
138 |
<tr>
|
|
|
139 |
<th>Id</th>
|
|
|
140 |
<th>Name</th>
|
|
|
141 |
<th>email</th>
|
|
|
142 |
<th>mobile</th>
|
|
|
143 |
<th>Brand</th>
|
| 24429 |
tejbeer |
144 |
<th>Protal Access</th>
|
| 24159 |
tejbeer |
145 |
<th>Partner Name</th>
|
|
|
146 |
<th colspan = 2>Status</th>
|
|
|
147 |
</tr>
|
|
|
148 |
#if(!$promoterInfo.isEmpty())
|
|
|
149 |
#foreach( $request in $promoterInfo )
|
|
|
150 |
<tr class="promoterInfo" data="$request.getId()">
|
|
|
151 |
<td>$request.getId()</td>
|
|
|
152 |
<td>$request.getName()</td>
|
|
|
153 |
<td>$request.getEmail()</td>
|
|
|
154 |
<td>$request.getMobile()</td>
|
|
|
155 |
<td>$request.getBrand()</td>
|
| 24429 |
tejbeer |
156 |
<td>$request.isSdPortalAccess()</td>
|
| 24159 |
tejbeer |
157 |
#if($partnersMap.get($request.getRetailerId()))
|
|
|
158 |
<td>$partnersMap.get($request.getRetailerId()).getBusinessName()</td>
|
|
|
159 |
#else
|
|
|
160 |
<td> null </td>
|
|
|
161 |
#end
|
| 24429 |
tejbeer |
162 |
<td><button class="btn btn-primary updatePromoterdetail" data-requestid="$request.getId()" data-name="$request.getName()" data-brand="$request.getBrand()" data-partner ="$partnersMap.get($request.getRetailerId()).getBusinessName()" data-email="$request.getEmail()" data-mobile="$request.getMobile()" data-portal="$request.isSdPortalAccess()" type="button" style="width:100%;border-radius:0px;">Edit</button>
|
| 24159 |
tejbeer |
163 |
</td>
|
|
|
164 |
|
|
|
165 |
<td><button class="btn btn-primary removePromoter" data-requestid="$request.getId()" type="button" style="width:100%;border-radius:0px;">Remove</button>
|
|
|
166 |
</td>
|
|
|
167 |
</tr>
|
|
|
168 |
#end
|
|
|
169 |
#else
|
|
|
170 |
<tr>
|
|
|
171 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
172 |
</tr>
|
|
|
173 |
#end
|
|
|
174 |
</tbody>
|
|
|
175 |
</table>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
</div>
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
#if(!$promoterInfo.isEmpty())
|
|
|
182 |
<div class="row" id="promoter-info-paginated">
|
|
|
183 |
<div class="col-lg-9">
|
|
|
184 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
185 |
</div>
|
|
|
186 |
<div class="col-lg-4" style="text-align:right;float:right">
|
|
|
187 |
<div class="btn-group" style="width:40%">
|
|
|
188 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
189 |
</div>
|
|
|
190 |
<div class="btn-group" style="width:40%">
|
|
|
191 |
#if($end >= $size)
|
|
|
192 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
193 |
#else
|
|
|
194 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
195 |
#end
|
|
|
196 |
</div>
|
|
|
197 |
</div>
|
|
|
198 |
</div>
|
|
|
199 |
#end
|
|
|
200 |
</div>
|
|
|
201 |
|
|
|
202 |
</section>
|
|
|
203 |
<div id="promoter-container" style="background:white;background-color:white;">
|
|
|
204 |
</div>
|