roundcube-aliasmanager/skins/elastic/templates/settings.html

50 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2022-11-07 12:37:35 +02:00
<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">
<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>
</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">
</td>
<td class="col-sm-1">
<button class="button submit btn btn-primary btn-aliasmanager-add-alias" type="button">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>
</form>
</div>
</div>
<template id="alias-list-row">
<tr class="form-group">
<td>
<input style="background: transparent;border: none;outline: none;width: 100%; cursor: pointer; font-family: monospace;" readonly type="text" value="{email}" onclick="this.select();">
2022-11-07 12:37:35 +02:00
</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>