Procházet zdrojové kódy

Merge branch 'develop'

master
Fab před 4 roky
rodič
revize
a58771d510
3 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. +1
    -0
      ShopBundle/Controller/CitiesController.php
  2. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  3. +15
    -0
      ShopBundle/Resources/views/backend/user/block/user-switch.html.twig

+ 1
- 0
ShopBundle/Controller/CitiesController.php Zobrazit soubor

@@ -44,6 +44,7 @@ class CitiesController extends AbstractController

$return[] = [
'label' => '<span class="city">'.$city->nom.'</span> <span class="zip">'.$codesPostaux[0].'</span>',
'city' => $city->nom,
'value' => $city->code
] ;
}

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml Zobrazit soubor

@@ -474,6 +474,7 @@ action:
account: Mon compte
logout: Me déconnecter
address: Adresse utilisateur
switch: Prendre la main
order:
addOrderProduct: Ajouter un produit
addReductionCart: Ajouter une réduction

+ 15
- 0
ShopBundle/Resources/views/backend/user/block/user-switch.html.twig Zobrazit soubor

@@ -0,0 +1,15 @@

{% if is_granted('ROLE_SUPER_ADMIN') %}
{% if is_dropdown %}
<a class="btn dropdown-item {{ action.css_class|default('btn-default') }}" href="{{ merchantUtils.merchantCurrent.getMerchantConfig('url') }}?_switch_user={{ item.username }}" target="_blank">
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%}
{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}
</a>
{% else %}
<a class="btn {{ action.css_class|default('btn-default') }}" data-toggle="tooltip"
title="{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}"
href="{{ merchant.getMerchantConfig('url') }}?_switch_user={{ val }}" target="_blank">
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%}
</a>
{% endif %}
{% endif %}

Načítá se…
Zrušit
Uložit