Harden aliasmanager, add live search, copy, ru_RU localization

This commit is contained in:
stuzer05 committed 2026-10-01 16:06:58 +03:00
1 parent a185391f9d
commit 86e2db4717
8 files changed
+395 -281

No files matched your search

+17 -34
View File
@@ -1,50 +1,33 @@
<div id='aliasmanager-settings' class="scroller">
<div id="aliasmanager-settings" class="scroller">
<div class="boxcontent formcontent">
<form id="password-form" name="password-form" method="post" action="./?_task=settings&_action=plugin.password-save">
<form id="aliasmanager-form" onsubmit="return false">
<table class="propform">
<tbody>
<tr class="form-group row">
<td class="title col-sm-2">
<label for="alias-new-name" class="col-form-label">New alias for</label>
<label for="alias-new-name" class="col-form-label">[+new_alias_for+]</label>
</td>
<td class="col-sm-2">
<input id="alias-new-name" size="60" required name="alias_new_name" class="form-control" placeholder="Service name.." type="text">
<input id="alias-new-name" size="40" maxlength="40" required name="alias_new_name" class="form-control" placeholder="[+service_name+]" type="text">
</td>
<td class="col-sm-1">
<button class="button submit btn btn-primary btn-aliasmanager-add-alias" type="button">Add</button>
<button class="button submit btn btn-primary btn-aliasmanager-add-alias" type="submit">[+add+]</button>
</td>
</tr>
<tr class="form-group row">
<table>
<thead>
<tr>
<th>Alias</th>
<th>Enabled</th>
<th>Action</th>
</tr>
</thead>
<tbody class="alias-list"></tbody>
</table>
</tr>
</tbody>
</table>
<input type="search" id="alias-search" class="form-control aliasmanager-search" placeholder="[+search+]" autocomplete="off">
<table class="records-table aliasmanager-table">
<thead>
<tr>
<th>[+alias+]</th>
<th>[+created+]</th>
<th>[+enabled+]</th>
<th>[+action+]</th>
</tr>
</thead>
<tbody class="alias-list"></tbody>
</table>
</form>
</div>
</div>
<template id="alias-list-row">
<tr class="form-group">
<td>
<span>{email}</span>
</td>
<td>
<div class="custom-control custom-switch">
<input type="checkbox" id="toggle-active-{i}" value="{active}" {checked} data-email="{email}" class="form-check-input custom-control-input btn-aliasmanager-toggle-alias">
<label for="toggle-active-{i}" class="custom-control-label" title=""></label>
</div>
</td>
<td>
<button class="button btn-sm btn-danger btn-aliasmanager-delete-alias" data-email="{email}" type="button">Delete</button>
</td>
</tr>
</template>