Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>EXTERNAL API CLIENTS</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>EXTERNAL API CLIENTS</li>
                        </ol>
                </div>
        </div>
        <div style="background:white;background-color:white;padding:10px;">
                <h4 class="modelHeaderCustom" style="font-size:22px;">Clients &amp; Mapped Access</h4>
                <p style="color:#666;">Third-party API keys (<code>fofo.api_client</code>) with the stores and categories
                each key is allowed to see. Mappings live in <code>fofo.api_client_store</code> /
                <code>fofo.api_client_category</code>; changes take effect within 5 minutes (cache).</p>
                <table class="table table-bordered table-striped">
                        <thead>
                                <tr>
                                        <th style="width:60px;">Id</th>
                                        <th style="width:160px;">Client</th>
                                        <th style="width:80px;">Status</th>
                                        <th>Mapped Stores</th>
                                        <th style="width:260px;">Mapped Categories</th>
                                </tr>
                        </thead>
                        <tbody>
                                #foreach ($client in $apiClients)
                                <tr>
                                        <td>$client.getId()</td>
                                        <td>$client.getName()</td>
                                        <td>
                                                #if($client.isActive())
                                                        <span class="label label-success">ACTIVE</span>
                                                #else
                                                        <span class="label label-default">INACTIVE</span>
                                                #end
                                        </td>
                                        <td>
                                                #if($client.getStores().isEmpty())
                                                        <em>none</em>
                                                #else
                                                        #foreach ($store in $client.getStores())
                                                                $store<br/>
                                                        #end
                                                #end
                                        </td>
                                        <td>
                                                #if($client.getCategories().isEmpty())
                                                        <em>none — client sees no catalog</em>
                                                #else
                                                        #foreach ($category in $client.getCategories())
                                                                $category<br/>
                                                        #end
                                                #end
                                        </td>
                                </tr>
                                #end
                        </tbody>
                </table>
        </div>
</section>