Maketank Theme migration
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-30 13:52:59 +01:00
parent f2643ac887
commit 53a6485a6e
413 changed files with 6836 additions and 1985 deletions

View File

@@ -0,0 +1,3 @@
<tr>
<td colspan="6"><span class="red">{$message}</span></td>
</tr>

View File

@@ -0,0 +1,44 @@
<tr <if $isMyKey>class="primary-entry"</if> id="apikey-{$row['id']}" data-id="{$row['id']}" title="{$lng['apikeys']['clicktoview']}">
<td>
{$adminCustomerLink}
</td>
<td>
<span>{$row['_apikey']}</span>
</td>
<td>
<span>{$row['_secret']}</span>
</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' => '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']}"/>
<input type="hidden" name="area" value="{$area}"/>
<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>

View File

@@ -0,0 +1,81 @@
$header
<article>
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/lock_big.png" alt="" />&nbsp;
{$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>
<if (int)$userinfo['api_allowed'] != 1>
<div class="messagewrapperfull">
<div class="warningcontainer bradius">
<div class="warningtitle">{$lng['admin']['warning']}</div>
<div class="warning">{$lng['usersettings']['api_allowed']['notice']}</div>
</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>
<if (int)$userinfo['api_allowed'] == 1>
<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>
<table class="full hl">
<thead>
<tr>
<th>{$lng['login']['username']}</th>
<th>API-key</th>
<th>Secret</th>
<th>{$lng['apikeys']['allowed_from']}</th>
<th>{$lng['apikeys']['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 >
<if (int)$userinfo['api_allowed'] == 1>
<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>
</if>
</section>
</article>
$footer