|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="switch-merchant"> |
|
|
<div id="switch-merchant"> |
|
|
{% if is_granted('ROLE_ADMIN') %} |
|
|
{% if is_granted('ROLE_ADMIN') %} |
|
|
<form action="{{ path('switch_merchant') }}" method="post"> |
|
|
|
|
|
|
|
|
<form action="{{ path('admin_switch_merchant') }}" method="post"> |
|
|
<select class="form-control" name="id_merchant"> |
|
|
<select class="form-control" name="id_merchant"> |
|
|
{% for merchant in merchants %} |
|
|
{% for merchant in merchants %} |
|
|
<option value="{{merchant.id}}" {% if current_merchant and current_merchant.id == merchant.id %}selected="selected"{% endif %}>{{merchant.title}}</option> |
|
|
<option value="{{merchant.id}}" {% if current_merchant and current_merchant.id == merchant.id %}selected="selected"{% endif %}>{{merchant.title}}</option> |