mail/app/templates/shared/admin_edit.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

33 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'layout/base.html' %}
{% block title %}{{ 'Редактировать общий ящик' if sm else 'Новый общий ящик' }}{% endblock %}
{% block body %}
<div class="content" style="max-width:640px">
<div class="card">
<div class="card-head"><div class="card-title">{{ 'Редактировать общий ящик' if sm else 'Новый общий ящик' }}</div></div>
<form method="post">
<div class="card-body">
<div class="form-row">
<label>Название</label>
<input type="text" name="name" value="{{ sm.name if sm else '' }}" placeholder="Например: Поддержка" required>
</div>
<div class="form-row">
<label>Email адрес ящика</label>
<input type="text" name="email" value="{{ sm.email if sm else '' }}" placeholder="support@koreana.link" required>
</div>
<div class="form-row">
<label>Доступ (email по одному в строке)</label>
<textarea name="users" rows="6" style="font-family:monospace">{{ sm.user_emails|join('\n') if sm else '' }}</textarea>
<div style="color:var(--color-text-tertiary);font-size:11px;margin-top:4px">
У перечисленных пользователей ящик появится в sidebar в разделе «Общая почта».
</div>
</div>
</div>
<div class="card-head" style="border-top:0.5px solid var(--color-border-tertiary);border-bottom:none;justify-content:flex-end">
<a class="btn" href="{{ url_for('shared.admin_index') }}">Отмена</a>
<button type="submit" class="btn btn-primary">Сохранить</button>
</div>
</form>
</div>
</div>
{% endblock %}