-
-
{{ 'Reset email template to default'|trans }}
-
-
-
-
-
-
-
-
-
-
{{ 'Email templates examples'|trans }}
-
{{ 'Email template playground. Use this tool to try rendering email templates.'|trans }}
-
-
-
{% endblock %}
{% block js %}
-
-{% endblock %}
+{% endblock %}
\ No newline at end of file
diff --git a/src/bb-themes/admin_default/html/mod_email_details.html.twig b/src/bb-themes/admin_default/html/mod_email_details.html.twig
deleted file mode 100644
index 84e55da79..000000000
--- a/src/bb-themes/admin_default/html/mod_email_details.html.twig
+++ /dev/null
@@ -1,72 +0,0 @@
-{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %}
-
-{% set active_menu = 'activity' %}
-
-{% block meta_title %}{{ email.subject }}{% endblock %}
-
-{% block breadcrumbs %}
-
-
-
-
-
-
-
-
-
- {{ 'Email history'|trans }}
-
- {{ email.subject }}
-
-{% endblock %}
-
-{% block content %}
-
-
-
{{ email.subject }}
-
-
-
-
-
- {{ 'From'|trans }}:
- {{ email.sender }}
-
-
-
- {{ 'To'|trans }}:
- {{ email.recipients }}
-
-
-
- {{ 'Sent'|trans }}:
- {{ email.created_at|date('l, d F Y') }}
-
-
-
-
-
-
-
- {{ email.content_html|raw }}
-
-
-{% endblock %}
diff --git a/src/bb-themes/admin_default/html/mod_email_history.html.twig b/src/bb-themes/admin_default/html/mod_email_history.html.twig
deleted file mode 100644
index 67e465bce..000000000
--- a/src/bb-themes/admin_default/html/mod_email_history.html.twig
+++ /dev/null
@@ -1,80 +0,0 @@
-{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %}
-
-{% import 'macro_functions.html.twig' as mf %}
-
-{% block meta_title %}{{ 'Email history'|trans }}{% endblock %}
-
-{% set active_menu = 'activity' %}
-
-{% block content %}
- {% set config = admin.extension_config_get({ 'ext': 'mod_email' }) %}
- {% if config.log_enabled is not defined or config.log_enabled != 1 %}
-
-
{{ 'Information'|trans }}: {{ 'Email logging is not enabled. If you want to log sent mails to database, enable it in'|trans }}
-
{{ 'email settings.'|trans }}
-
-
- {% endif %}
-
-
-
-
{{ 'Email history'|trans }}
-
-
- {% include 'partial_search.html.twig' %}
-
-
-
-
-{% endblock %}
diff --git a/src/bb-themes/admin_default/html/mod_email_settings.html.twig b/src/bb-themes/admin_default/html/mod_email_settings.html.twig
deleted file mode 100644
index b64e641eb..000000000
--- a/src/bb-themes/admin_default/html/mod_email_settings.html.twig
+++ /dev/null
@@ -1,313 +0,0 @@
-{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %}
-
-{% import 'macro_functions.html.twig' as mf %}
-{% block meta_title %}{{ 'Email'|trans }}{% endblock %}
-
-{% block breadcrumbs %}
-
-{% endblock %}
-
-{% set active_menu = 'system' %}
-{% block content %}
-
-
-
-
-
- {% include 'partial_search.html.twig' %}
-
-
-
- {{ 'Subject'|trans }}
- {{ 'Extension'|trans }}
- {{ 'Code'|trans }}
- {{ 'Enabled'|trans }}
-
-
-
-
-
- {% set templates = admin.email_template_get_list({ 'per_page': 100, 'page': request.page }|merge(request)) %}
- {% for i, template in templates.list %}
-
-
- {{ template.subject }}
-
- {{ template.category }}
- {{ template.action_code }}
-
- {% if template.enabled == 1 %}
-
- {% endif %}
- {% if template.enabled == 0 %}
-
- {% endif %}
- {{ mf.q(template.enabled) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% else %}
-
- {{ 'The list is empty. Depending on modules enabled email templates will be inserted after first event occurrence.'|trans }}
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
{{ 'Where I can use new email template?'|trans }}
-
{{ 'Newly created email templates can be used in custom event hooks.'|trans }}
-
-
-
-
{{ 'Enabled'|trans }}:
-
-
-
-
{{ 'Category'|trans }}
-
-
-
-
-
-
{{ 'Action code'|trans }}
-
-
-
-
-
-
{{ 'Subject'|trans }}
-
-
-
-
-
-
{{ 'Content'|trans }}
-
- {{ requests.content }}
-
-
-
-
-
-
-
-
- {% set params = admin.extension_config_get({ 'ext': 'mod_email' }) %}
-
-
-
-
{{ 'Configure email options'|trans }}
-
{{ 'FOSSBilling sends emails using sendmail by default or you can configure your own SMTP server'|trans|raw }}
-
-
-
-
{{ 'Log sent emails to database'|trans }}
-
-
-
-
{{ 'Email transport'|trans }}
-
-
-
-
-
-
{{ 'SMTP Hostname'|trans }}
-
-
-
-
-
-
{{ 'SMTP Port'|trans }}
-
-
-
-
-
-
{{ 'SMTP Username'|trans }}
-
-
-
-
-
-
{{ 'SMTP Password'|trans }}
-
-
-
-
-
-
{{ 'SMTP Security'|trans }}
-
-
-
-
-
-
-
{{ 'SendGrid Username'|trans }}
-
-
-
-
-
-
{{ 'SendGrid Password'|trans }}
-
-
-
-
-
-
-
-
-
-
-
-
-{% endblock %}
-
-{% block js %}
-
-{% endblock %}
diff --git a/src/bb-themes/admin_default/html/mod_email_template.html.twig b/src/bb-themes/admin_default/html/mod_email_template.html.twig
deleted file mode 100644
index 42a193654..000000000
--- a/src/bb-themes/admin_default/html/mod_email_template.html.twig
+++ /dev/null
@@ -1,265 +0,0 @@
-{% extends "layout_default.html.twig" %}
-
-{% block meta_title %}Email template{% endblock %}
-{% set active_menu = 'system' %}
-
-{% block breadcrumbs %}
-
-
-
-
-
-
-
-
-
- {{ 'Settings'|trans }}
-
-
- {{ 'Email'|trans }}
-
- {{ template.action_code }}
-
-{% endblock %}
-
-{% block content %}
-{# {% if template.vars|length == 0 %}
-
-{% endif %} #}
-
-
-
-
-
-
-
-
-
{{ 'Manage email template'|trans }}
-
{{ 'Most email templates receives parameters from FOSSBilling. You can browse them on "Variables" tab. Copy variable name to email template and hit preview to see parsed content. Please note that values will be different when actual email is sent.'|trans }}
-
-
-
{{ 'Email subject'|trans }}
-
-
-
-
-
-
{{ 'Email message'|trans }}
-
- {{ template.content }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ 'Template settings'|trans }}
-
{{ 'Enable or disable this email template.'|trans }}
-
-
-
-
{{ 'Enabled'|trans }}:
-
-
-
-
{{ 'Category'|trans }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ 'List of variables used in this email'|trans }}
-
{{ 'These values will change when real email is sent. You can pass these variables to admin or guest API to get additional information from database.'|trans }}
-
-
-
-
-
- {{ 'Variable'|trans }}
- {{ 'Example value'|trans }}
-
-
-
- {% for k,var in template.vars %}
- {% if var is iterable %}
- {% for subkey,subvalue in var %}
- {% if subvalue is iterable %}
- {% for subsubkey,subsubvalue in var %}
- {% if subsubvalue is not iterable %}
-
- {{ '{{' }} {{ k }}.{{ subkey }}.{{ subsubkey }}{{ '}}' }}
- {{ subsubvalue }}
-
- {% else %}
-
- {{ '{{' }} {{ k }}.{{ subkey }}.{{ subsubkey }}{{ '}}' }}
- Array [ ]
-
- {% endif %}
- {% endfor %}
- {% else %}
-
- {{ '{{' }} {{ k }}.{{ subkey }} {{ '}}' }}
- {{ subvalue }}
-
- {% endif %}
- {% endfor %}
- {% else %}
-
- {{ '{{' }} {{ k }} {{ '}}' }}
- {{ var }}
-
- {% endif %}
- {% else %}
-
- {{ 'This template does not receive any parameters'|trans }}
-
- {% endfor %}
-
-
-
-
-
-
-
{{ 'Email templates examples'|trans }}
-
{{ 'Email template playground. Use this tool to try rendering email templates.'|trans }}
-
-
-
{% autoescape false %}{% apply markdown %}
-This is an example of markdown syntax in email template
-
-*Italic text*
-**Bolded text**
-
-Lists:
-
-* Red
-* Green
-* Blue
-
-***
-
-Link to login form: <{{ 'login'|link }}>
-
-Company signature: {{ guest.system_company.signature }}
-
-You can event use IF statements in email templates: {% if 1 == 2 %}This will never show{% else %}Of course 1 is not equal 2{% endif %}
-
-***
-
-Accessing Admin API can get information about your FOSSBilling, for example how many clients you have:
-{% set stats = admin.stats_get_summary %}
-**Total clients:** {{ stats.clients_total }}
-
-{# Comments in email templates. This text is not visible #}
-{# Uncomment the line below to see what is the output #}
-
-{#{% debug stats %} #}
-{% endapply %}{% endautoescape %}
-
-
-
-
-
-
- {{ 'Preview'|trans }}
-
-
-
-
-
-
-{% endblock %}
-
-{% block js %}
-
-{% endblock %}