started UI api-key management
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
3
templates/Sparkle/api_keys/keys_error.tpl
vendored
Normal file
3
templates/Sparkle/api_keys/keys_error.tpl
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<tr>
|
||||
<td colspan="6"><span class="red">{$message}</span></td>
|
||||
</tr>
|
||||
27
templates/Sparkle/api_keys/keys_key.tpl
vendored
Normal file
27
templates/Sparkle/api_keys/keys_key.tpl
vendored
Normal 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>
|
||||
<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>
|
||||
68
templates/Sparkle/api_keys/keys_list.tpl
vendored
Normal file
68
templates/Sparkle/api_keys/keys_list.tpl
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/lock_big.png" alt="" />
|
||||
{$lng['menue']['main']['apikeys']}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<if !empty($success_message)>
|
||||
<div class="successcontainer bradius">
|
||||
<div class="successtitle">{$lng['success']['success']}</div>
|
||||
<div class="success">
|
||||
$success_message
|
||||
</div>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
<section>
|
||||
|
||||
<form action="{$linker->getLink(array('section' => 'index', 'page' => $page))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<input type="hidden" name="s" value="$s" />
|
||||
<input type="hidden" name="page" value="$page" />
|
||||
|
||||
<div class="overviewsearch">
|
||||
{$searchcode}
|
||||
</div>
|
||||
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||
</div>
|
||||
|
||||
<table class="full hl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>API-keys</th>
|
||||
<th>Secret</th>
|
||||
<th>Allowed from</th>
|
||||
<th>Valid until</th>
|
||||
<th>{$lng['panel']['options']}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<if $pagingcode != ''>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">{$pagingcode}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</if>
|
||||
|
||||
<tbody>
|
||||
{$apikeys}
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<if 15 < $count >
|
||||
<div class="overviewadd">
|
||||
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />
|
||||
<a href="{$linker->getLink(array('section' => 'index', 'page' => $page, 'action' => 'add'))}">{$lng['apikeys']['key_add']}</a>
|
||||
</div>
|
||||
</if>
|
||||
</section>
|
||||
</article>
|
||||
$footer
|
||||
Reference in New Issue
Block a user