| 27231 |
tejbeer |
1 |
<script>
|
|
|
2 |
$(document).ready(function() {
|
|
|
3 |
$('#fofo-users').multiselect({
|
|
|
4 |
includeSelectAllOption: true,
|
|
|
5 |
maxHeight: 200,
|
|
|
6 |
multiple:true,
|
|
|
7 |
buttonWidth: '180px',
|
|
|
8 |
numberDisplayed: 1,
|
|
|
9 |
nonSelectedText: 'Users',
|
|
|
10 |
nSelectedText: ' - Users Selected',
|
|
|
11 |
allSelectedText: 'All Users Selected',
|
|
|
12 |
enableFiltering: true,
|
|
|
13 |
enableCaseInsensitiveFiltering : true
|
|
|
14 |
});
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
});
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
</script>
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
<section class="wrapper">
|
|
|
28 |
<div class="row">
|
|
|
29 |
<div class="col-lg-12">
|
|
|
30 |
<h3 class="page-header"><i class="icon_document_alt"></i>PARTNER INFO</h3>
|
|
|
31 |
<ol class="breadcrumb">
|
|
|
32 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
33 |
<li><i class="icon_document_alt"></i>Partner Info</li>
|
|
|
34 |
</ol>
|
|
|
35 |
</div>
|
|
|
36 |
</div>
|
|
|
37 |
<form id="allocation-form">
|
|
|
38 |
<div id="customer-details" style="background:white;background-color:white;padding:10px;">
|
|
|
39 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Partner Info</h4>
|
|
|
40 |
<div>
|
|
|
41 |
<div class = "row">
|
|
|
42 |
<div class="col-lg-2 form-group">
|
|
|
43 |
<select class="form-control input-sm" id = "fofo-users" name = "fofo-users" placeholder="Partners" >
|
| 28030 |
tejbeer |
44 |
|
| 27231 |
tejbeer |
45 |
<option value="" disabled selected>Partners</option>
|
|
|
46 |
#foreach($fofoId in $customRetailersMap.keySet())
|
| 28030 |
tejbeer |
47 |
<option value="$fofoId"
|
|
|
48 |
data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
|
| 27231 |
tejbeer |
49 |
#end
|
|
|
50 |
</select>
|
|
|
51 |
|
|
|
52 |
</div>
|
|
|
53 |
|
|
|
54 |
<div class="col-lg-2">
|
| 28037 |
tejbeer |
55 |
<button class="btn btn-primary partnerInfoReadOnly" type="button" style="width:100%; border-radius:0px;">Dashboard</button>
|
| 27231 |
tejbeer |
56 |
</div>
|
| 28030 |
tejbeer |
57 |
|
|
|
58 |
<div class="col-lg-2">
|
|
|
59 |
<a id="mobileAppIdinfo" href="${rc.contextPath}/mobileapp" class="btn btn-default" target="_blank">Franchise App</a>
|
| 37005 |
ranu |
60 |
</div>
|
|
|
61 |
<div class="col-lg-2">
|
|
|
62 |
<a href="${rc.contextPath}/mobileapp" data-app="react" class="btn btn-default open-app"
|
|
|
63 |
target="_blank">Franchise App V2</a>
|
| 28030 |
tejbeer |
64 |
</div>
|
| 27231 |
tejbeer |
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|
|
|
68 |
</form>
|
|
|
69 |
|
|
|
70 |
<div class="partner-indent-container">
|
|
|
71 |
</div>
|
|
|
72 |
</section>
|
| 28030 |
tejbeer |
73 |
<script type="text/javascript">
|
|
|
74 |
$(document).on('click', "#mobileAppIdinfo",
|
|
|
75 |
function() {
|
|
|
76 |
|
|
|
77 |
var email = $('#fofo-users').find('option:selected').data('email');
|
|
|
78 |
console.log(email);
|
|
|
79 |
uri = new URL($("#mobileAppIdinfo")[0].href);
|
|
|
80 |
uri.search = "emailId=" + email;
|
|
|
81 |
console.log(uri)
|
|
|
82 |
$("#mobileAppIdinfo")[0].href = uri.toString();
|
|
|
83 |
|
|
|
84 |
});
|
| 37005 |
ranu |
85 |
|
|
|
86 |
$(document).on('click', ".open-app", function () {
|
|
|
87 |
var email = $('#fofo-users').find('option:selected').data('email');
|
|
|
88 |
var uri = new URL(this.href);
|
|
|
89 |
uri.search = "emailId=" + (email || "") + "&appType=" + ($(this).data('app') || "");
|
|
|
90 |
this.href = uri.toString();
|
|
|
91 |
});
|
| 28030 |
tejbeer |
92 |
</script>
|
| 27231 |
tejbeer |
93 |
|
|
|
94 |
|