interface adjustments for apikey interaction

Signed-off-by: Michael Kaufmann <michael.kaufmann@aixit.com>
This commit is contained in:
Michael Kaufmann
2018-06-21 08:21:27 +02:00
parent f198833f8c
commit f1d91dfef8
9 changed files with 115 additions and 39 deletions

View File

@@ -3,10 +3,10 @@
{$adminCustomerLink}
</td>
<td>
{$row['apikey']}
<span id="apikey-{$row['id']}" data-id="{$row['id']}" title="{$lng['apikeys']['clicktoview']}">{$row['_apikey']}</span>
</td>
<td>
{$row['secret']}
<span id="secret-{$row['id']}" data-id="{$row['id']}" title="{$lng['apikeys']['clicktoview']}">{$row['_secret']}</span>
</td>
<td>
{$row['allowed_from']}
@@ -23,5 +23,24 @@
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'delete', 'id' => $row['id']))}">
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" />
</a>
<div id="dialog-{$row['id']}" title="API-key / Secret" class="hidden api-dialog">
<form action="{$linker->getLink(array('section' => 'apikeys'))}" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id" value="{$row['id']}"/>
<table class="full hl">
<tr>
<th>API-key</th><td><input type="text" value="{$row['apikey']}" readonly/></td>
</tr>
<tr>
<th>Secret</th><td><input type="text" value="{$row['secret']}" readonly/></td>
</tr>
<tr>
<th>{$lng['apikeys']['allowed_from']}<br><small>{$lng['apikeys']['allowed_from_help']}</small></th><td><input type="text" name="allowed_from" value="{$row['allowed_from']}"/></td>
</tr>
<tr>
<th>{$lng['apikeys']['valid_until']}<br><small>{$lng['apikeys']['valid_until_help']}</small></th><td><input type="text" name="valid_until" value="{$row['valid_until']}"/></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</tr>

View File

@@ -34,11 +34,11 @@
<table class="full hl">
<thead>
<tr>
<th>User</th>
<th>API-keys</th>
<th>{$lng['login']['username']}</th>
<th>API-key</th>
<th>Secret</th>
<th>Allowed from</th>
<th>Valid until</th>
<th>{$lng['apikeys']['allowed_from']}</th>
<th>{$lng['apikeys']['valid_until']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>