} | } | ||||
/* line 118, ../../sass/backend/custom.scss */ | /* line 118, ../../sass/backend/custom.scss */ | ||||
.button-action .btn { | |||||
.button-action a.float-right { | |||||
margin-left: 10px; | margin-left: 10px; | ||||
} | } | ||||
/* Général */ | /* Général */ | ||||
.btn.btn-primary.action-save{float: right;} | .btn.btn-primary.action-save{float: right;} | ||||
.button-action .btn{margin-left: 10px;} | |||||
.button-action a.float-right{margin-left: 10px;} | |||||
.input-group-text { | .input-group-text { | ||||
padding: 0.250rem .75rem ; | padding: 0.250rem .75rem ; |
{#{{ dump(action) }}#} | |||||
<a class="btn {{ is_dropdown|default(false) ? 'dropdown-item' }} {{ action.css_class|default('btn-default') }}" data-toggle="tooltip" | <a class="btn {{ is_dropdown|default(false) ? 'dropdown-item' }} {{ action.css_class|default('btn-default') }}" data-toggle="tooltip" | ||||
title="{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}" | title="{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}" | ||||
href="{{ action_href }}" target="{{ action.target }}"> | href="{{ action_href }}" target="{{ action.target }}"> |
{% if value is defined and value is not null %} | {% if value is defined and value is not null %} | ||||
{% if item.getBehaviorPrice() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_PRICE_BY_PIECE") %} | |||||
{{ value }} pièce{% if value > 1 %}s{% endif %} | |||||
{% elseif item.getBehaviorPrice() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_PRICE_BY_REFERENCE_UNIT") %} | |||||
{{ value }} {{ item.getUnit().getUnit() }} | |||||
{% if value > 0 %} | |||||
{% set badge_class = 'badge-success' %} | |||||
{% else %} | |||||
{% set badge_class = 'badge-danger' %} | |||||
{% endif %} | |||||
<span class="badge {{ badge_class }}"> | |||||
{% if item.getBehaviorCountStock() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_COUNT_STOCK_BY_MEASURE") %} | |||||
{{ value }} {{ item.getUnit().getUnit() }} | |||||
{% elseif item.getBehaviorCountStock() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_COUNT_STOCK_BY_PRODUCT_FAMILY") %} | |||||
{{ value }} pièce{% if value > 1 %}s{% endif %} | |||||
{% elseif item.getBehaviorCountStock() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_COUNT_STOCK_BY_PRODUCT") %} | |||||
{{ item.getAvailableQuantityInherited() }} pièce{% if value > 1 %}s{% endif %} (déclinaisons) | |||||
{% endif %} | |||||
</span> | |||||
{% else %} | |||||
{% if item.getBehaviorCountStock() == constant("Lc\\ShopBundle\\Model\\ProductFamily::BEHAVIOR_COUNT_STOCK_UNLIMITED") %} | |||||
<span class="badge badge-success">Illimité</span> | |||||
{% else %} | |||||
<span class="badge badge-danger">Pas de stock</span> | |||||
{% endif %} | {% endif %} | ||||
{% endif %} | {% endif %} |
{{ dump(_default_title) }} | {{ dump(_default_title) }} | ||||
{{ (_entity_config.list.title is defined ? _entity_config.list.title|trans(_trans_parameters) : _default_title)|raw }}#} | {{ (_entity_config.list.title is defined ? _entity_config.list.title|trans(_trans_parameters) : _default_title)|raw }}#} | ||||
{% endif %} | {% endif %} | ||||
{% if app.request.get('action') == 'listChildren' and app.request.get('entity') == 'ProductCategory' %} | |||||
: {{ entity.title }} | |||||
{% endif %} | |||||
{% endapply %} | {% endapply %} | ||||
{% endblock %} | {% endblock %} | ||||
</a> | </a> | ||||
{% if _entity_config['list']['edit_position'] is defined %} | {% if _entity_config['list']['edit_position'] is defined %} | ||||
<a class="float-right btn btn-success action-sort" | |||||
<a class="float-right btn-sm btn-success action-sort" | |||||
href="{{ path('easyadmin', _request_parameters|merge({ action: 'sort' })) }}" | href="{{ path('easyadmin', _request_parameters|merge({ action: 'sort' })) }}" | ||||
target="{{ _action.target }}"> | target="{{ _action.target }}"> | ||||
<i class="fa fa-sort"></i> Modifier position | <i class="fa fa-sort"></i> Modifier position | ||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
{% if app.request.get('action') == 'listChildren' and app.request.get('entity') == 'ProductCategory' %} | |||||
<a class="float-right btn-sm btn-primary" href="{{ path('easyadmin', {action: 'list', entity: 'ProductCategory'}) }}"> | |||||
<i class="fa fa-chevron-left"></i> Retour à la catégorie parente | |||||
</a> | |||||
{% endif %} | |||||
</div> | </div> | ||||
{% endblock new_action %} | {% endblock new_action %} | ||||
{% endif %} | {% endif %} |
{% if item.getChildrens()|length > 0 %} | |||||
<a class="btn {{ is_dropdown|default(false) ? 'dropdown-item' }} {{ 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="{{ action_href }}" target="{{ action.target }}"> | |||||
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%} | |||||
</a> | |||||
{% endif %} |