| 37222 |
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>EXTERNAL API CLIENTS</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>EXTERNAL API CLIENTS</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;">Clients & Mapped Access</h4>
|
|
|
13 |
<p style="color:#666;">Third-party API keys (<code>fofo.api_client</code>) with the stores and categories
|
|
|
14 |
each key is allowed to see. Mappings live in <code>fofo.api_client_store</code> /
|
|
|
15 |
<code>fofo.api_client_category</code>; changes take effect within 5 minutes (cache).</p>
|
|
|
16 |
<table class="table table-bordered table-striped">
|
|
|
17 |
<thead>
|
|
|
18 |
<tr>
|
|
|
19 |
<th style="width:60px;">Id</th>
|
|
|
20 |
<th style="width:160px;">Client</th>
|
|
|
21 |
<th style="width:80px;">Status</th>
|
|
|
22 |
<th>Mapped Stores</th>
|
|
|
23 |
<th style="width:260px;">Mapped Categories</th>
|
|
|
24 |
</tr>
|
|
|
25 |
</thead>
|
|
|
26 |
<tbody>
|
|
|
27 |
#foreach ($client in $apiClients)
|
|
|
28 |
<tr>
|
|
|
29 |
<td>$client.getId()</td>
|
|
|
30 |
<td>$client.getName()</td>
|
|
|
31 |
<td>
|
|
|
32 |
#if($client.isActive())
|
|
|
33 |
<span class="label label-success">ACTIVE</span>
|
|
|
34 |
#else
|
|
|
35 |
<span class="label label-default">INACTIVE</span>
|
|
|
36 |
#end
|
|
|
37 |
</td>
|
|
|
38 |
<td>
|
|
|
39 |
#if($client.getStores().isEmpty())
|
|
|
40 |
<em>none</em>
|
|
|
41 |
#else
|
|
|
42 |
#foreach ($store in $client.getStores())
|
|
|
43 |
$store<br/>
|
|
|
44 |
#end
|
|
|
45 |
#end
|
|
|
46 |
</td>
|
|
|
47 |
<td>
|
|
|
48 |
#if($client.getCategories().isEmpty())
|
|
|
49 |
<em>none — client sees no catalog</em>
|
|
|
50 |
#else
|
|
|
51 |
#foreach ($category in $client.getCategories())
|
|
|
52 |
$category<br/>
|
|
|
53 |
#end
|
|
|
54 |
#end
|
|
|
55 |
</td>
|
|
|
56 |
</tr>
|
|
|
57 |
#end
|
|
|
58 |
</tbody>
|
|
|
59 |
</table>
|
|
|
60 |
</div>
|
|
|
61 |
</section>
|