Subversion Repositories SmartDukaan

Rev

Rev 37093 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
37075 ranu 57
 
37007 ranu 58
					#*<div class="col-lg-2">
37118 ranu 59
                        <a id="mobileAppIdinfo" href="${rc.contextPath}/mobileapp" class="btn btn-default"
60
                           target="_blank">Franchise App</a>
61
                    </div>*#
62
					#*<div class="col-lg-2">
37005 ranu 63
						<a href="${rc.contextPath}/mobileapp" data-app="react" class="btn btn-default open-app"
64
						   target="_blank">Franchise App V2</a>
37007 ranu 65
	         	</div>*#
27231 tejbeer 66
	            </div>
67
	          </div>
68
	        </div>
69
	    </form>
70
 
71
	      <div class="partner-indent-container">
72
		</div>	 
73
	  </section>
28030 tejbeer 74
	  <script type="text/javascript">
75
$(document).on('click', "#mobileAppIdinfo",
76
		function() {
77
 
78
			var email = $('#fofo-users').find('option:selected').data('email');
79
			console.log(email);
80
			uri = new URL($("#mobileAppIdinfo")[0].href);
81
			uri.search = "emailId=" + email;
82
			console.log(uri)
83
			$("#mobileAppIdinfo")[0].href = uri.toString();
84
 
85
		});
37005 ranu 86
 
87
$(document).on('click', ".open-app", function () {
88
	var email = $('#fofo-users').find('option:selected').data('email');
89
	var uri = new URL(this.href);
90
	uri.search = "emailId=" + (email || "") + "&appType=" + ($(this).data('app') || "");
91
	this.href = uri.toString();
92
});
28030 tejbeer 93
</script>
27231 tejbeer 94
 
95