Release 2.0.5 (#3888)

- Fixed: mandatory fields / form validation for invoice template
- Added: Duration as calendar title replacer (open: running records)
- Fixed: HTML injection in Calendar
- Fixed: Doctrine Proxies are not initialized (leads to empty customer/project)
- Fixed: tag creation
- Fixed: validation errors do not need to be logged in prod
- Removed: Customer VCard download, as used library is outdated and not maintained
- Added: supporting translations domains in many new places (menu, help_text, page_setup, report, exporter, calendar)
This commit is contained in:
Kevin Papst
2023-03-05 03:08:43 +01:00
committed by GitHub
parent 3b93afabc8
commit 0cbf0053d2
77 changed files with 1306 additions and 874 deletions

View File

@@ -165,7 +165,7 @@
{% block page_title %}
{%- if page_setup is defined -%}
{{ page_setup.title|trans }}
{{ page_setup.title|trans({}, page_setup.translationDomain) }}
{%- else -%}
{{ get_title() }}
{%- endif -%}

View File

@@ -17,7 +17,7 @@
{% endif %}
{% for source in dragAndDrop|filter(s => s.entries|length > 0) %}
{% embed '@theme/embeds/card.html.twig' %}
{% block box_title %}{{ source.title|trans }}{% endblock %}
{% block box_title %}{{ source.title|trans({}, source.translationDomain) }}{% endblock %}
{% block box_body_class %}drag-and-drop-source p-0{% endblock %}
{% block box_body %}
<div class="list-group list-group-flush external-events" data-method="{{ source.method }}" data-route="{{ path(source.route, source.routeParams) }}" data-route-replacer="{{ source.routeReplacer|json_encode|e('html_attr') }}">

View File

@@ -13,7 +13,6 @@
{% endblock %}
{% block box_tools %}
{% if can_edit %}
{{ widgets.card_tool_button('vcard', {'title': 'vcard', 'translation_domain': 'actions', 'icon': 'far fa-address-card', 'url': path('customer_vcard', {'id': customer.id})}) }}
{{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_customer_edit', {'id': customer.id})}) }}
{% endif %}
{% endblock %}

View File

@@ -350,3 +350,23 @@
{{ form_row(meta.value, {'row_attr': {'class': 'mb-3 ' ~ form.parent.vars.name ~ '_row_' ~ form.vars.name ~ '_' ~ meta.vars.name}}) }}
{% endfor %}
{%- endblock meta_fields_collection_widget %}
{% block form_help_content -%}
{%- if help_translation_domain is defined and help_translation_domain is not null -%}
{%- set translation_domain = help_translation_domain -%}
{%- endif -%}
{# following copied from form_div_layout.html.twig #}
{%- if translation_domain is same as(false) -%}
{%- if help_html is same as(false) -%}
{{- help -}}
{%- else -%}
{{- help|raw -}}
{%- endif -%}
{%- else -%}
{%- if help_html is same as(false) -%}
{{- help|trans(help_translation_parameters, translation_domain) -}}
{%- else -%}
{{- help|trans(help_translation_parameters, translation_domain)|raw -}}
{%- endif -%}
{%- endif -%}
{%- endblock form_help_content %}

View File

@@ -17,7 +17,7 @@
<div class="col-auto">
<span class="avatar"><i class="icon {{ report.reportIcon|icon(false, report.reportIcon) }}" style="color: {{ null|colorize(report.reportIcon) }}"></i></span>
</div>
<div class="col p-2">{{ report.label|trans({}, 'reporting') }}</div>
<div class="col p-2">{{ report.label|trans({}, report.translationDomain) }}</div>
</div>
</div>
</a>

View File

@@ -5,10 +5,17 @@
{% block breadcrumb %}
{% from "macros/breadcrumb.html.twig" import breadcrumb %}
{{ breadcrumb({
('menu.reporting'|trans): path('reporting'),
(report_title|trans({}, 'reporting')): '#'
}) }}
{% if page_setup is defined %}
{{ breadcrumb({
('menu.reporting'|trans): path('reporting'),
(page_setup.title|trans({}, page_setup.translationDomain)): '#'
}) }}
{% else %}
{{ breadcrumb({
('menu.reporting'|trans): path('reporting'),
(report_title|trans({}, 'reporting')): '#'
}) }}
{% endif %}
{% endblock %}
{% block main %}