Quellcode durchsuchen

[Backend] Divers : traductions + adaptation thème bootstrap

feature/export_comptable
Guillaume vor 4 Jahren
Ursprung
Commit
a9e7435e73
3 geänderte Dateien mit 17 neuen und 7 gelöschten Zeilen
  1. +2
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  2. +1
    -1
      ShopBundle/Resources/views/backend/default/layout/layout.html.twig
  3. +14
    -6
      ShopBundle/Resources/views/backend/form/custom_bootstrap_4.html.twig

+ 2
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml Datei anzeigen

@@ -279,6 +279,8 @@ field:
total: Total
products: Produits
purchaseOrderEmailContent: "Contenu par défaut de l'email envoyé aux producteurs"
dateStart: Date de début
dateEnd: Date de fin

PointSale:
code: Code

+ 1
- 1
ShopBundle/Resources/views/backend/default/layout/layout.html.twig Datei anzeigen

@@ -186,7 +186,7 @@
</div>

{% block content_reminders %}
{% if reminders|length >0 %}
{% if reminders is defined and reminders|length >0 %}
<div class="head-reminders card card-outline card-danger">
{% include '@LcShop/backend/default/block/list_reminders.html.twig' %}
</div>

+ 14
- 6
ShopBundle/Resources/views/backend/form/custom_bootstrap_4.html.twig Datei anzeigen

@@ -66,10 +66,12 @@
</div>
{% endif %}#}

{% set labelHelp = 'field.'~easyadmin['entity']['name']~'.'~name~'Help' %}
{% if labelHelp|trans({}, 'lcshop') == labelHelp %}{% set labelHelp = 'form.field.default.'~name~'Help' %}{% endif %}
{% if labelHelp|trans({}, 'lcshop') != labelHelp %}
<small class="form-text text-muted">{{ labelHelp|trans({}, 'lcshop')|raw }}</small>
{% if easyadmin is defined %}
{% set labelHelp = 'field.'~easyadmin['entity']['name']~'.'~name~'Help' %}
{% if labelHelp|trans({}, 'lcshop') == labelHelp %}{% set labelHelp = 'form.field.default.'~name~'Help' %}{% endif %}
{% if labelHelp|trans({}, 'lcshop') != labelHelp %}
<small class="form-text text-muted">{{ labelHelp|trans({}, 'lcshop')|raw }}</small>
{% endif %}
{% endif %}

{{- form_errors(form) -}}
@@ -128,11 +130,17 @@
{% set name_trad = label|replace({'field.MerchantConfig.': ''}) %}
{% set trad = name_trad|lc_trad(easyadmin['entity']['name'], 'field') %}
{% else %}
{% set trad = name|lc_trad(easyadmin['entity']['name'], 'field') %}
{% if easyadmin is defined %}
{% set trad = name|lc_trad(easyadmin['entity']['name'], 'field') %}
{% else %}
{% set trad = name|lc_trad('', 'field') %}
{% endif %}
{% endif %}

{%- endif -%}
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ trad }}</{{ element|default('label') }}>
{% if trad is defined %}
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ trad }}</{{ element|default('label') }}>
{% endif %}
{%- endif -%}
{%- endblock form_label %}


Laden…
Abbrechen
Speichern