- Implemented email settings configuration in the admin panel, allowing for SMTP settings and notification preferences. - Created a new template for email settings with fields for SMTP host, port, username, password, sender address, and recipients. - Added JavaScript functionality to handle loading, saving, and validating email settings. - Introduced email templates management, enabling the listing, editing, and saving of email templates. - Updated navigation to include links to email settings and templates. - Added tests for email settings and templates to ensure proper functionality and validation.
44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
<nav class="nav">
|
|
<a
|
|
href="{{ url_for('admin.dashboard') }}"
|
|
class="nav-link{% if request.path in ['/admin', '/admin/'] %} active{% endif %}"
|
|
>Dashboard</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.submissions') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/submissions') %} active{% endif %}"
|
|
>Contact Submissions</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.newsletter_subscribers') }}"
|
|
class="nav-link{% if request.path == '/admin/newsletter' %} active{% endif %}"
|
|
>Subscribers</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.newsletter_create') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/newsletter/create') %} active{% endif %}"
|
|
>Create Newsletter</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.embeds') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/embeds') %} active{% endif %}"
|
|
>Embeds</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.email_settings_page') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/email-settings') %} active{% endif %}"
|
|
>Email Settings</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.email_templates') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/email-templates') %} active{% endif %}"
|
|
>Email Templates</a
|
|
>
|
|
<a
|
|
href="{{ url_for('admin.settings_page') }}"
|
|
class="nav-link{% if request.path.startswith('/admin/settings') and not request.path.startswith('/admin/email-settings') %} active{% endif %}"
|
|
>Settings</a
|
|
>
|
|
<a href="{{ url_for('auth.logout') }}" class="nav-link">Logout</a>
|
|
</nav>
|