@@ -370,7 +370,7 @@ table th .select2-container--default .select2-selection--single { | |||
} | |||
/* line 118, ../../sass/backend/custom.scss */ | |||
.button-action .btn { | |||
.button-action a.float-right { | |||
margin-left: 10px; | |||
} | |||
@@ -115,7 +115,7 @@ table th .select2-container--default .select2-selection--single{padding:0.3rem 0 | |||
/* Général */ | |||
.btn.btn-primary.action-save{float: right;} | |||
.button-action .btn{margin-left: 10px;} | |||
.button-action a.float-right{margin-left: 10px;} | |||
.input-group-text { | |||
padding: 0.250rem .75rem ; |
@@ -1,4 +1,4 @@ | |||
{#{{ dump(action) }}#} | |||
<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 }}"> |
@@ -41,6 +41,10 @@ | |||
{{ dump(_default_title) }} | |||
{{ (_entity_config.list.title is defined ? _entity_config.list.title|trans(_trans_parameters) : _default_title)|raw }}#} | |||
{% endif %} | |||
{% if app.request.get('action') == 'listChildren' and app.request.get('entity') == 'ProductCategory' %} | |||
: {{ entity.title }} | |||
{% endif %} | |||
{% endapply %} | |||
{% endblock %} | |||
@@ -99,12 +103,19 @@ | |||
</a> | |||
{% 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' })) }}" | |||
target="{{ _action.target }}"> | |||
<i class="fa fa-sort"></i> Modifier position | |||
</a> | |||
{% 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> | |||
{% endblock new_action %} | |||
{% endif %} |
@@ -0,0 +1,7 @@ | |||
{% 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 %} |