mail/app/templates/settings/signatures.html
deeily 5024bf9a8d init: full mail stack — phases 0..8 (web client, admin, IMAP/SMTP,
sieve, search, sessions, dramatiq, deploy/install, ELK, monitoring)
2026-04-29 16:30:43 +03:00

36 lines
1.8 KiB
HTML

{% extends 'layout/base.html' %}
{% block title %}Подписи{% endblock %}
{% block topbar_right %}
<a class="btn btn-primary" href="{{ url_for('settings.signature_new') }}">Новая подпись</a>
{% endblock %}
{% block body %}
<div class="content">
<div class="card">
<div class="card-head"><div class="card-title">Подписи</div></div>
<table class="tbl">
<thead><tr><th>Название</th><th>Содержимое (Markdown)</th><th style="width:120px">По умолчанию</th><th style="width:180px"></th></tr></thead>
<tbody>
{% for s in signatures %}
<tr>
<td><strong>{{ s.name }}</strong></td>
<td style="font-family:monospace;font-size:12px;white-space:pre-wrap;color:var(--color-text-secondary);max-width:500px">{{ s.body_md[:160] }}{% if s.body_md|length > 160 %}…{% endif %}</td>
<td>{% if s.is_default %}<span class="badge badge-green">по умолчанию</span>{% endif %}</td>
<td style="text-align:right;white-space:nowrap">
<div style="display:inline-flex;gap:6px;align-items:center;justify-content:flex-end">
<a class="btn btn-sm" href="{{ url_for('settings.signature_edit', sid=s.id) }}">Изменить</a>
<form method="post" action="{{ url_for('settings.signature_delete', sid=s.id) }}" style="display:inline"
onsubmit="return confirm('Удалить подпись?')">
<button class="btn btn-sm btn-danger" type="submit">Удалить</button>
</form>
</div>
</td>
</tr>
{% else %}
<tr><td colspan="4" style="text-align:center;color:var(--color-text-tertiary);padding:20px">Подписей нет</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}