From 2b32a6fe2971b24f93c6f337f357bcdfa0692f36 Mon Sep 17 00:00:00 2001 From: evrifaessa Date: Mon, 21 Nov 2022 23:04:20 +0300 Subject: [PATCH] Stuff from #113. Mainly pages rewritten with Tabler. --- .../html_admin/mod_client_group.html.twig | 13 +- .../html_admin/mod_cron_settings.html.twig | 107 +++--- .../html_admin/mod_currency_manage.html.twig | 94 +++-- .../mod_currency_settings.html.twig | 267 +++++++------ .../html_admin/mod_invoice_settings.html.twig | 209 +++++----- .../html_admin/mod_order_settings.html.twig | 143 +++---- .../html_admin/mod_queue_settings.html.twig | 111 +++--- .../mod_redirect_settings.html.twig | 132 +++---- .../html_admin/mod_support_helpdesk.html.twig | 142 ++++--- .../html_admin/mod_support_settings.html.twig | 324 +++++++--------- .../modal/mod_support_new_helpdesk.html.twig | 55 +++ .../html_admin/mod_system_settings.html.twig | 362 ++++++++---------- .../html_admin/mod_wysiwyg_settings.html.twig | 78 ++-- 13 files changed, 1042 insertions(+), 995 deletions(-) create mode 100644 src/bb-modules/Support/html_admin/modal/mod_support_new_helpdesk.html.twig diff --git a/src/bb-modules/Client/html_admin/mod_client_group.html.twig b/src/bb-modules/Client/html_admin/mod_client_group.html.twig index 878d4d493..57beafade 100644 --- a/src/bb-modules/Client/html_admin/mod_client_group.html.twig +++ b/src/bb-modules/Client/html_admin/mod_client_group.html.twig @@ -22,10 +22,11 @@ {% block content %}
+
+

{{ 'Edit client group'|trans }} - {{ group.title }}

+
-
{{ group.title }}
-
@@ -44,6 +45,14 @@ {{ 'Go back'|trans }} + + + + +
diff --git a/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig index c1518999c..d8f47a395 100644 --- a/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig +++ b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig @@ -1,14 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'Cron settings'|trans }}{% endblock %} {% set active_menu = 'system' %} - {% block breadcrumbs %} - + {% endblock %} {% block content %} -
-
-
{{ 'Cron settings'|trans }}
+
+
+

{{ 'Cron settings'|trans }}

+
{{ 'Setup scheduled tasks to be executed once a day'|trans }}
+

{{ 'Scheduled tasks must be enabled immediately after installation. Cron is responsible for sending your clients reminder about payments, domain renewal notices and many more.'|trans }}

+ + {% set cron = admin.cron_info %} + + + + + + + + + + + + + + + + + + + + + + + +
{{ 'Timezone'|trans }}:{{ "now"|date('e') }}
{{ 'Time on server'|trans }}:{{ "now"|date('Y-m-d H:i:s') }}
{{ 'Last time scheduled tasks were executed'|trans }}: + {% if cron.last_cron_exec %} + {{ cron.last_cron_exec|date('Y-m-d H:i:s') }} + ({{ cron.last_cron_exec|timeago }} ago) + {% else %} + {{ 'Scheduled tasks were never executed'|trans }} + {% endif %} +
{{ 'Unix crontab setup'|trans }}:*/5 * * * * php {{ cron.cron_path }}
{{ 'Execute scheduled tasks from browser'|trans }}:{{ cron.cron_url }}
-
-

{{ 'Setup scheduled tasks to be executed once a day'|trans }}

-

{{ 'Scheduled tasks must be enabled immediately after installation. Cron is responsible for sending your clients reminder about payments, domain renewal notices and many more.'|trans }}

+
- - {% set cron = admin.cron_info %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ 'Timezone'|trans }}{{ "now"|date('e') }}
{{ 'Time on server'|trans }}{{ "now"|date('Y-m-d H:i:s') }}
{{ 'Last time scheduled tasks were executed'|trans }} - {% if cron.last_cron_exec %} - {{ cron.last_cron_exec|date('Y-m-d H:i:s') }} - ({{ cron.last_cron_exec|timeago }} ago) - {% else %} - {{ 'Scheduled tasks were never executed'|trans }} - {% endif %} -
{{ 'Unix crontab setup:'|trans }}
*/5 * * * * php {{ cron.cron_path}}
{{ 'Execute scheduled tasks from browser'|trans }}
{{ cron.cron_url}}
- -
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig b/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig index f29e4c7f1..e321e5ad6 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig +++ b/src/bb-modules/Currency/html_admin/mod_currency_manage.html.twig @@ -1,13 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% set active_menu = 'system' %} {% block meta_title %}{{ 'Currency management'|trans }}{% endblock %} {% block breadcrumbs %} - + + + {% endblock %} {% block content %} -
-
-
{{ 'Edit currency information'|trans }} {{ currency.code }}
-
+
+
+

{{ 'Edit currency information'|trans }} {{ currency.code }}

-
-
-
- -
- + +
+ +
+
-
-
- -
- +
+ +
+
-
-
- -
- +
+ +
+
-
-
- -
- - - - - +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
-
- - -
-
+ + + + +
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig index b9c0e0d16..642b7069a 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig +++ b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig @@ -1,11 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} + +{% import 'macro_functions.html.twig' as mf %} -{% import "macro_functions.html.twig" as mf %} {% set active_menu = 'system' %} + {% block meta_title %}{{ 'Currency settings'|trans }}{% endblock %} {% block breadcrumbs %} - + {% endblock %} {% block content %} -
-
    -
  • {{ 'Currencies'|trans }}
  • -
  • {{ 'Add new currency'|trans }}
  • -
  • {{ 'Settings'|trans }}
  • -
  • {{ 'Converter'|trans }}
  • + -
    -
    -
    - -
    +
    +
    +
    +

    {{ 'Manage currencies'|trans }}

    -

    {{ 'Default currency is the one you manage all your prices in admin area. If your client in client area chooses other than default currency, prices will be recalculated according to conversion rate. You can have only one default currency. You can not add same currency once again. Changing default currency is not recommended when active orders are available. Nothing is recalculated on default currency change. Your income is calculated in default currency. Changing default currency after you have paid invoices will distort income statistics. Currency rates are taken from European Central Bank and currencylayer.'|trans }}

    +

    {{ 'Default currency is the one you manage all your prices in admin area. If your client in client area chooses other than default currency, prices will be recalculated according to conversion rate. You can have only one default currency. You can not add same currency once again. Changing default currency is not recommended when active orders are available. Nothing is recalculated on default currency change. Your income is calculated in default currency. Changing default currency after you have paid invoices will distort income statistics. Currency rates are taken from European Central Bank and currencylayer.'|trans }}

    - +
    - + - {% for currency in admin.currency_get_list.list %} - - - - - - - + + + + + + + {% else %} - + {% endfor %} - - - - - -
    {{ 'ISO code'|trans }} {{ 'Title'|trans }} {{ 'Conversion rate'|trans }} {{ 'Example price'|trans }} 
    {% if currency.default %}{{ currency.code }}{% else %}{{ currency.code }}{% endif %}{{ currency.title }}{{ currency.conversion_rate }}{{ mf.currency_format(1) }} = {{ mf.currency(1, currency.code) }} - - - {% if not currency.default %} - - {% endif %} -
    {% if currency.default %}{{ currency.code }}{% else %}{{ currency.code }}{% endif %} + {{ currency.title }} + {{ currency.conversion_rate }}{{ mf.currency_format(1) }} = {{ mf.currency(1, currency.code) }} + + + + + + + + + + + {% if not currency.default %} + + + + + + {% endif %} +
    - {{ 'The list is empty'|trans }} - {{ 'The list is empty'|trans }}
    - -
    + +
    -
    - -
    -
    -
    - -
    +
    +
    + +
    + +
    {{ mf.selectbox('code', admin.currency_get_pairs, 'USD', 1) }}
    -
    -
    - -
    - +
    + +
    +
    -
    -
    - -
    - +
    + +
    +
    -
    -
    - -
    - +
    + +
    +
    -
    - -
    -
    - - -
    - -
    -
    -

    {{ 'Adjust settings for currency rate updater'|trans }}

    -

    FOSSBilling uses data grabbed from European Central Bank for conversions from Euro to other currencies, and currencylayer for conversations from US Dollar to other currencies.
    If you choose Euro as your default currency, data from European Central Bank will be used, if you choose US Dollar, data from currencylayer will be used.
    While European Central Bank decided to keep it's API free to everyone, you won't need an authorization key to use ECB's data. However, you'll need an API key to use currencylayer.
    You can grab your API key from currencylayer's website. FOSSBilling doesn't make any profits from your purchases on currencylayer.com

    -

    FOSSBilling does not take any responsibilities for data grabbed from 3rd party sources, including European Central Bank and currencylayer.

    + +
    -
    -
    -
    - -
    - -
    -
    -
    -
    - -

    If you enable this, conversion rates will be automatically updated whenever the CRON job fires up.

    -
    - - -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
      -
    • - -
    • -
    • {{ guest.currency_get.code }} =
    • -
    • -
    • - -
    • -
    • -
    • {{ mf.selectbox('to', guest.currency_get_pairs) }}
    • -
    -
    -
    +
    +
    +

    {{ 'Adjust settings for currency rate updater'|trans }}

    +

    FOSSBilling uses data grabbed from European Central Bank for conversions from Euro to other currencies, and currencylayer for conversations from US Dollar to other currencies.
    If you choose Euro as your default currency, data from European Central Bank will be used, if you choose US Dollar, data from currencylayer will be used.
    While European Central Bank decided to keep it's API free to everyone, you won't need an autorization key to use ECB's data. However, you'll need an API key to use currencylayer.
    You can grab your API key from currencylayer's website. FOSSBilling doesn't make any profits from your purchases on currencylayer.com

    +

    FOSSBilling does not take any responsibilities for data grabbed from 3rd party sources, including European Central Bank and currencylayer.

    + + +
    + +
    + +
    -
    +
    + +
    +
    + + +
    +
    + + +
    + {{ 'If you enable this, conversion rates will be automatically updated whenever the CRON job fires up.'|trans }} +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + {{ guest.currency_get.code }} + + = + +
    {{ mf.selectbox('to', guest.currency_get_pairs) }}
    +
+
+
@@ -182,16 +201,16 @@ {% endblock %} {% block js %} - -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Invoice/html_admin/mod_invoice_settings.html.twig b/src/bb-modules/Invoice/html_admin/mod_invoice_settings.html.twig index 5b3e62a41..a3d753a49 100644 --- a/src/bb-modules/Invoice/html_admin/mod_invoice_settings.html.twig +++ b/src/bb-modules/Invoice/html_admin/mod_invoice_settings.html.twig @@ -1,13 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'Invoice settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} - + {% endblock %} {% block content %} +
+
+

{{ 'Invoice settings'|trans }}

-
-
-
{{ 'Invoice settings'|trans }}
+ {% set params = admin.system_get_params %} +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+
+ +
{{ 'Proforma Invoicing / Sequential Invoice Numbering'|trans }}
+
+ +
+ + {{ 'Set 0 to keep invoices forever.'|trans }} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
{{ 'Refunds settings'|trans }}
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
{{ 'Add funds settings'|trans }}
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
- - {% set params = admin.system_get_params %} -
-
-
- -
- -
-
-
- -
- -
- -
-
-
- -
- -
- - -
-
-
-
- -
- {{ 'Proforma Invoicing / Sequential Invoice Numbering'|trans }} - -
- -
- -
-
-
- -
- -
- -
-
-
- -
- -
- -
-
-
- -
- -
- -
-
-
-
- -
- {{ 'Refunds settings'|trans }} -
- -
- -
- -
- -
-
-
-
- -
- {{ 'Add funds settings'|trans }} -
- -
- -
-
-
- -
- -
- -
-
-
- - -
-
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Order/html_admin/mod_order_settings.html.twig b/src/bb-modules/Order/html_admin/mod_order_settings.html.twig index 429e919ae..6b8a3ca8a 100644 --- a/src/bb-modules/Order/html_admin/mod_order_settings.html.twig +++ b/src/bb-modules/Order/html_admin/mod_order_settings.html.twig @@ -1,13 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'Orders settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} -
+ {% endblock %} {% block content %} -
-
-
{{ 'Orders settings'|trans }}
+
+
+

{{ 'Orders settings'|trans }}

+ + {% set params = admin.extension_config_get({ 'ext': 'mod_order' }) %} +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ +
+
+ + +
+
+ + +
+ {{ 'If this is disabled they are shown in master order view "Addons" tab.'|trans }} +
+
+
+ +
+ +
+
+
+ +
+
+ + + {{ 'days after order suspension with reason'|trans }} + +
+
+
+
+ +
+ +
+
+ + + +
- - {% set params = admin.extension_config_get({"ext":"mod_order"}) %} -
-
-
- -
- -
- -
- -
-
-
- -
- -
- - -
-
-
- -
- -
- -
-
-
- -
- -
-
    -
  • - -
  • -
  • -
  • days after order suspension with reason
  • -
  • -
-
-
-
- -
- -
- -
-
-
- - - -
-
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig index 0313c8cfb..c7638f142 100644 --- a/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig +++ b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig @@ -1,68 +1,81 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'Queues'|trans }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} -
+ {% endblock %} {% block content %} -
-
-
{{ 'Queues'|trans }}
-
+ - {{ mf.table_search }} - +
+
+
+ {% include 'partial_search.html.twig' %} +
+
+
- - - - - + + + + + - - {% set queues = admin.queue_get_list({ "per_page": 100, "page": request.page }|merge(request)) %} - {% for i, queue in queues.list %} - - - - - - - - - - {% else %} - - - - {% endfor %} + {% set queues = admin.queue_get_list({ "per_page": 100, "page": request.page }|merge(request)) %} + {% for i, queue in queues.list %} + + + + + + + + {% else %} + + + + {% endfor %}
{{ 'Name'|trans }}{{ 'Extension'|trans }}{{ 'Messages'|trans }}{{ 'Created'|trans }} {{ 'Name'|trans }}{{ 'Extension'|trans }}{{ 'Messages'|trans }}{{ 'Created'|trans }}
{{ queue.name }}{{ queue.mod }}{{ queue.messages_count }}{{ queue.created_at|bb_date }} - - {##} -
- {{ 'The list is empty.'|trans }} -
{{ queue.name }}{{ queue.mod }}{{ queue.messages_count }}{{ queue.created_at|bb_date }} + + + + + + {# + + + + #} +
{{ 'The list is empty'|trans }}
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig index f28e7f2cb..f4e04274b 100644 --- a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig +++ b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig @@ -1,11 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} + +{% import 'macro_functions.html.twig' as mf %} -{% import "macro_functions.html.twig" as mf %} {% block meta_title %}{{ 'Redirects'|trans }}{% endblock %} + {% set active_menu = 'system' %} {% block breadcrumbs %} - + {% endblock %} {% block content %} -
- + -
-
-
- - - - - - - - - - {% set redirects = admin.redirect_get_list({ "per_page": 100, "page": request.page }|merge(request)) %} +
+
+
{{ 'Create new redirect'|trans }}
+ +
+
+ {{ ''|link }} + + + + + + + + +
+ +
+ +
{{ 'From'|trans }}{{ 'To'|trans }} 
+ + + + + + + + + {% set redirects = admin.redirect_get_list({ 'per_page': 100, 'page': request.page }|merge(request)) %} {% for r in redirects %} - - - + + {% else %} - + {% endfor %} - - - - - - -
{{ 'From'|trans }}{{ 'To'|trans }}
{{ r.path | link }}{% if '://' in r.target %}{{ r.target }}{% else %}{{ r.target | link }}{% endif %} - + + {{ r.path | link }} + + {% if '://' in r.target %} + {{ r.target }} + {% else %} + {{ r.target | link }} + {% endif %} + + + + + +
- {{ 'The list is empty.'|trans }} - {{ 'The list is empty'|trans }}
-   -
- -
-

{{ 'Create new redirect'|trans }}

-
- -
-
-
-
- {{ ''|link }} - → - - -
-
-
-
-
- -
- -
- -
+ +
-
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig b/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig index 877987d14..5958881b3 100644 --- a/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig +++ b/src/bb-modules/Support/html_admin/mod_support_helpdesk.html.twig @@ -1,73 +1,97 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ helpdesk.name }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} - + {% endblock %} {% block content %} -
-
-
{{ helpdesk.name }}
-
+ -
-

{{ 'Support help desk'|trans }}

-

{{ 'Help desk name will be visible for clients when submitting new ticket. Define very large number of hours to disable auto close ticket option'|trans }}

-
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+
+
- -
-
- -
- -
-
-
-
- -
- -
-
-
-
- -
- -
-
-
-
- -
- -
-
-
-
- -
- - -
-
-
- - - -
+ + +
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig index e6cf781b0..6c7547f2d 100644 --- a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig +++ b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig @@ -1,13 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'Support settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} - + {% endblock %} {% block content %} - -
- -
    -
  • {{ 'Settings'|trans }}
  • -
  • {{ 'Help desks'|trans }}
  • -
  • {{ 'New help desk'|trans }}
  • + -
    -
    -
    - {% set params = admin.extension_config_get({ "ext": "mod_support" }) %} -
    +
    +
    +
    +
    +

    {{ 'Auto responder settings'|trans }}

    -
    - {{ 'Auto responder settings'|trans }} -
    - -
    - - + {% set params = admin.extension_config_get({ 'ext': 'mod_support' }) %} + +
    + +
    +
    + + +
    +
    + + +
    -
    -
    -
    - -
    - + -
    -
    -
    - {{ 'Delay message - selected canned response message will be added to default reply message'|trans }} -
    - -
    - - -
    -
    +
    {{ 'Delay message'|trans }}
    +

    {{ 'Selected canned response message will be added to default reply message.'|trans }}

    +
    + +
    +
    + + +
    +
    + + +
    +
    +
    + +
    + +
    + + {{ 'Wait time - how many hours user needs to wait until consequent ticket submission.'|trans }} +
    +
    + + + +
    - -
    -
    - -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    -
    - - {{ 'Wait time - how many hours user needs to wait until consequent ticket submission'|trans }} -
    - -
    - -
    -
    -
    - - - -
    -
    -
    - - {{ mf.table_search }} - +
    +
    +
    + {% include 'partial_search.html.twig' %} + + + + + {{ 'New helpdesk'|trans }} + +
    +
    +
    - - - - - - + + + + + + + - - {% for helpdesk in admin.support_helpdesk_get_list({"per_page":50, "page":request.page}|merge(request)).list %} - - - - - - - - + {% for helpdesk in admin.support_helpdesk_get_list({ 'per_page': 50, 'page': request.page }|merge(request)).list %} + + + + + + + {% else %} - - - - - + + + {% endfor %} +
    {{ 'Title'|trans }}{{ 'Email'|trans }}{{ 'Close tickets after'|trans }} 
    #{{ 'Title'|trans }}{{ 'Email'|trans }}{{ 'Close tickets after'|trans }}
    {{ helpdesk.name }}{{ helpdesk.email }}{{ helpdesk.close_after }} hour(s) - - -
    {{ loop.index }} + {{ helpdesk.name }} + {{ helpdesk.email }}{{ helpdesk.close_after }} hour(s) + + + + + + + + + + +
    - {{ 'The list is empty'|trans }} -
    {{ 'The list is empty'|trans }}
    - -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    - - -
    -
    -
    - - - -
    -
    + +{% include 'modal/mod_support_new_helpdesk.html.twig' %} {% endblock %} {% block js %} {% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Support/html_admin/modal/mod_support_new_helpdesk.html.twig b/src/bb-modules/Support/html_admin/modal/mod_support_new_helpdesk.html.twig new file mode 100644 index 000000000..fd79999fc --- /dev/null +++ b/src/bb-modules/Support/html_admin/modal/mod_support_new_helpdesk.html.twig @@ -0,0 +1,55 @@ + \ No newline at end of file diff --git a/src/bb-modules/System/html_admin/mod_system_settings.html.twig b/src/bb-modules/System/html_admin/mod_system_settings.html.twig index 20cc2e2d7..311416315 100644 --- a/src/bb-modules/System/html_admin/mod_system_settings.html.twig +++ b/src/bb-modules/System/html_admin/mod_system_settings.html.twig @@ -1,13 +1,13 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} -{% import "macro_functions.html.twig" as mf %} +{% import 'macro_functions.html.twig' as mf %} {% block meta_title %}{{ 'System settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% block breadcrumbs %} - + {% endblock %} {% block content %} -{% set new_params = admin.extension_config_get({ "ext": "mod_system" }) %} -{% set params = admin.system_get_params %} -
    -
      -
    • {{ 'Company details'|trans }}
    • -
    • {{ 'FTP layer'|trans }}
    • -
    • {{ 'Countries'|trans }}
    • -
    • {{ 'Cache'|trans }}
    • + {% set new_params = admin.extension_config_get({ 'ext': 'mod_system' }) %} + {% set params = admin.system_get_params %} + - -
      -
      -
      -
      -
      -
      - -
      - + +
      +
      +
      +
      + +
      + +
      + +
      +
      +
      + +
      + +
      +
      +
      + +
      + +
      +
      +
      + +
      + + + +
      +
      +
      + +
      + +
      +
      +
      + +
      + +
      +
      +
      + +
      + +
      +
      +
      + +
      + +
      +
      +
      + +
      +
      -
      -
      - -
      - -
      -
      + + +
      + +
      +
      +

      {{ 'Company terms of service, legal regulation'|trans }}

      + +
      +
      +

      {{ 'Company privacy policy'|trans }}

      + +
      +
      +

      {{ 'Notes'|trans }}

      +
      -
      - -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      -
      - -
      -
      -
      - -
      -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      - -
      - -
      -
      -
      - - -
      - - -
      -
      - {{ 'Company terms of service, legal regulation'|trans }} - -
      - -
      - {{ 'Company privacy policy'|trans }} - -
      - -
      - {{ 'Notes'|trans }} - -
      - -
      - -
      -
      - + + +
      - -
      -
      -
      + +
      +
      + {% set default_countries %} AF=Afghanistan AX=Aland Islands @@ -401,91 +375,77 @@ YE=Yemen ZM=Zambia ZW=Zimbabwe {% endset %} -
      - -
      - +
      + +
      +
      -
      - - -
      -
      + + + +
    -
    -
    +
    +

    {{ 'FTP layer for FOSSBilling'|trans }}

    -

    {{ 'FTP is used to manage FOSSBilling modules and updates.'|trans }}

    -
    +

    {{ 'FTP is used to manage FOSSBilling modules and updates.'|trans }}

    -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    - -
    - -
    - -
    -
    -
    - - -
    -
    -
    - -
    -
    -

    {{ 'Cache control'|trans }}

    -
    -
    -
    -
    - -
    - + +
    + +
    + + {{ 'Can be a numerical URL 127.0.0.1 is the default address for a locally hosted server, it might be this, it might be the full URL as my example above with the File Transfer Protocol (FTP) prefix, it might be the http:// protocol it might be SFTP (secure FTP) even secure http (https). Your host will be able to advise you on the correct format.'|trans }}
    -
    -
    +
    + +
    + + {{ 'Is nearly always 21 unless the host has changed this they will have notified you of this. Secure FTP generally uses port 22.'|trans }} +
    +
    +
    + +
    + + {{ 'In most cases, this is the specific user name your host has set up for you to access your Web site via FTP- It is the name you use in your FTP client. This could be an alphanumeric, it could be your name, even your e-mail address, If you don\'t know this speak to your host. You may have the facility on your Web account to set up additional FTP users if that is the case (and it\'s more secure) you are recommended to do this'|trans }} +
    +
    +
    + +
    + + {{ 'This is the password you enter in your FTP client.'|trans }} +
    +
    +
    + +
    + + {{ 'This is generally the directory in which FOSSBilling is installed. This setting is very important to be setup correctly as it very specifically depends on the Host server settings. In can be just / BUT it might be htdocs/boxbilling, public_html/, /public_html/boxbilling or other. It is a variable that FOSSBilling has absolutely no control over. You will need to clarify this with your host.'|trans }} +
    +
    + + +
    +
    +
    +
    +

    {{ 'Cache control'|trans }}

    + +
    + +
    +
    +
    {% endblock %} -{% block head %}{{ mf.bb_editor('.bb-textarea') }}{% endblock %} +{% block head %}{{ mf.bb_editor('.bb-textarea') }}{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig b/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig index f772ac02e..1537b760d 100644 --- a/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig +++ b/src/bb-modules/Wysiwyg/html_admin/mod_wysiwyg_settings.html.twig @@ -1,53 +1,49 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} -{% import "macro_functions.html.twig" as mf %} +{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} + +{% import 'macro_functions.html.twig' as mf %} + {% block meta_title %}{{ 'Wysiwyg settings'|trans }}{% endblock %} + {% set active_menu = 'system' %} - {% block breadcrumbs %} - + {% endblock %} - {% block content %} +
    +
    +

    {{ 'Wysiwyg settings'|trans }}

    -
    -
    -
    {{ 'Wysiwyg settings'|trans }}
    -
    - -{% set params = admin.extension_config_get({"ext":"mod_wysiwyg"}) %} - -
    -
    -
    - -
    - {% for editor,title in admin.wysiwyg_editors %} - -
    -
    - {% endfor %} + {% set params = admin.extension_config_get({ 'ext': 'mod_wysiwyg' }) %} + +
    + +
    + {% for editor, title in admin.wysiwyg_editors %} +
    + + +
    + {% endfor %} +
    -
    -
    - - -
    -
    + + + +
    - {% endblock %} \ No newline at end of file