started UI api-key management

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-04 12:40:47 +01:00
parent 702b52d13e
commit b07d6ceeaa
13 changed files with 299 additions and 12 deletions

27
templates/Sparkle/api_keys/keys_key.tpl vendored Normal file
View File

@@ -0,0 +1,27 @@
<tr <if $isMyKey>class="primary-entry"</if>>
<td>
{$adminCustomerLink}
</td>
<td>
{$row['apikey']}
</td>
<td>
{$row['secret']}
</td>
<td>
{$row['allowed_from']}
</td>
<td>
<if !$isValid><strong><span class="red"></if>
{$row['valid_until']}
<if !$isValid></span></strong></if>
</td>
<td>
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}">
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" title="{$lng['panel']['edit']}" />
</a>&nbsp;
<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>
</td>
</tr>