| 37780 |
amit |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>DEMO PARTNER ACCESS</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>Demo Partner Access</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
<div style="background:white;background-color:white;padding:10px;">
|
|
|
12 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Grant Access</h4>
|
|
|
13 |
<p style="color:#666;">Tag partners to a Sales person for demo only. They can open these partners from
|
|
|
14 |
Partner access and the app; performance, targets and reports are not affected.</p>
|
|
|
15 |
<div class="row">
|
|
|
16 |
<div class="col-lg-3 form-group">
|
|
|
17 |
<select class="form-control input-sm" id="demo-sales-user">
|
|
|
18 |
<option value="" disabled selected>Sales person</option>
|
|
|
19 |
#foreach($user in $salesUsers)
|
|
|
20 |
<option value="$user.getId()">$user.getFullName() ($user.getEmailId())</option>
|
|
|
21 |
#end
|
|
|
22 |
</select>
|
|
|
23 |
</div>
|
|
|
24 |
<div class="col-lg-3 form-group">
|
|
|
25 |
<select class="form-control input-sm" id="demo-partners" multiple="multiple">
|
|
|
26 |
#foreach($partner in $partners)
|
|
|
27 |
<option value="$partner.getPartnerId()">$partner.getCode() - $partner.getBusinessName()</option>
|
|
|
28 |
#end
|
|
|
29 |
</select>
|
|
|
30 |
</div>
|
|
|
31 |
<div class="col-lg-2">
|
|
|
32 |
<button class="btn btn-primary demo-partner-grant" type="button" style="width:100%; border-radius:0px;">Grant</button>
|
|
|
33 |
</div>
|
|
|
34 |
</div>
|
|
|
35 |
</div>
|
|
|
36 |
<div style="background:white;background-color:white;padding:10px;margin-top:10px;">
|
|
|
37 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Active Grants</h4>
|
|
|
38 |
<table class="table table-bordered table-striped">
|
|
|
39 |
<thead>
|
|
|
40 |
<tr>
|
|
|
41 |
<th>Sales Person</th>
|
|
|
42 |
<th>Partner</th>
|
|
|
43 |
<th style="width:160px;">Granted By</th>
|
|
|
44 |
<th style="width:140px;">Granted On</th>
|
|
|
45 |
<th style="width:90px;"></th>
|
|
|
46 |
</tr>
|
|
|
47 |
</thead>
|
|
|
48 |
<tbody>
|
|
|
49 |
#if($grants.isEmpty())
|
|
|
50 |
<tr><td colspan="5"><em>No active demo access</em></td></tr>
|
|
|
51 |
#end
|
|
|
52 |
#foreach($grant in $grants)
|
|
|
53 |
<tr>
|
|
|
54 |
<td>$grant.get("salesUser")</td>
|
|
|
55 |
<td>$grant.get("partner")</td>
|
|
|
56 |
<td>$grant.get("grantedBy")</td>
|
|
|
57 |
<td>$grant.get("grantedOn")</td>
|
|
|
58 |
<td><button class="btn btn-danger btn-xs demo-partner-revoke" type="button" data-id="$grant.get("id")">Revoke</button></td>
|
|
|
59 |
</tr>
|
|
|
60 |
#end
|
|
|
61 |
</tbody>
|
|
|
62 |
</table>
|
|
|
63 |
</div>
|
|
|
64 |
</section>
|
|
|
65 |
<script type="text/javascript">
|
|
|
66 |
$('#demo-sales-user').multiselect({
|
|
|
67 |
maxHeight: 300,
|
|
|
68 |
buttonWidth: '100%',
|
|
|
69 |
enableFiltering: true,
|
|
|
70 |
enableCaseInsensitiveFiltering: true
|
|
|
71 |
});
|
|
|
72 |
$('#demo-partners').multiselect({
|
|
|
73 |
maxHeight: 300,
|
|
|
74 |
buttonWidth: '100%',
|
|
|
75 |
numberDisplayed: 1,
|
|
|
76 |
nonSelectedText: 'Partners',
|
|
|
77 |
nSelectedText: ' - Partners Selected',
|
|
|
78 |
enableFiltering: true,
|
|
|
79 |
enableCaseInsensitiveFiltering: true
|
|
|
80 |
});
|
|
|
81 |
</script>
|