hide button label on mobile (crud)
This commit is contained in:
parent
c1e7e3ddf0
commit
79817a4e92
|
@ -22,20 +22,26 @@
|
||||||
{% if configuration.action(context, 'back', true) %}
|
{% if configuration.action(context, 'back', true) %}
|
||||||
<a href="{{ path(configuration.pageRoute('index'), configuration.pageRouteParams('index')) }}" class="btn btn-light">
|
<a href="{{ path(configuration.pageRoute('index'), configuration.pageRouteParams('index')) }}" class="btn btn-light">
|
||||||
<span class="fa fa-list pr-1"></span>
|
<span class="fa fa-list pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if configuration.action(context, 'show', true, [entity]) %}
|
{% if configuration.action(context, 'show', true, [entity]) %}
|
||||||
<a href="{{ path(configuration.pageRoute('show'), {entity: entity.id}|merge(configuration.pageRouteParams('show'))) }}" class="btn btn-secondary">
|
<a href="{{ path(configuration.pageRoute('show'), {entity: entity.id}|merge(configuration.pageRouteParams('show'))) }}" class="btn btn-secondary">
|
||||||
<span class="fa fa-eye pr-1"></span>
|
<span class="fa fa-eye pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'show', 'Show')|trans|build_string(entity) }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'show', 'Show')|trans|build_string(entity) }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button type="submit" form="form-main" class="btn btn-primary">
|
<button type="submit" form="form-main" class="btn btn-primary">
|
||||||
<span class="fa fa-save pr-1"></span>
|
<span class="fa fa-save pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'save', 'Save')|trans|build_string(entity) }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'save', 'Save')|trans|build_string(entity) }}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{% block header_actions_after %}{% endblock %}
|
{% block header_actions_after %}{% endblock %}
|
||||||
|
|
|
@ -32,7 +32,9 @@
|
||||||
{% if configuration.action(context, 'new', true) %}
|
{% if configuration.action(context, 'new', true) %}
|
||||||
<a href="{{ path(configuration.pageRoute('new'), configuration.pageRouteParams('new')) }}" class="btn btn-primary">
|
<a href="{{ path(configuration.pageRoute('new'), configuration.pageRouteParams('new')) }}" class="btn btn-primary">
|
||||||
<span class="fa fa-plus pr-1"></span>
|
<span class="fa fa-plus pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'new', 'New')|trans }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'new', 'New')|trans }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -22,13 +22,17 @@
|
||||||
{% if configuration.action(context, 'back', true) %}
|
{% if configuration.action(context, 'back', true) %}
|
||||||
<a href="{{ path(configuration.pageRoute('index'), configuration.pageRouteParams('index')) }}" class="btn btn-light">
|
<a href="{{ path(configuration.pageRoute('index'), configuration.pageRouteParams('index')) }}" class="btn btn-light">
|
||||||
<span class="fa fa-list pr-1"></span>
|
<span class="fa fa-list pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button type="submit" form="form-main" class="btn btn-primary">
|
<button type="submit" form="form-main" class="btn btn-primary">
|
||||||
<span class="fa fa-save pr-1"></span>
|
<span class="fa fa-save pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'save', 'Save')|trans|build_string(entity) }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'save', 'Save')|trans|build_string(entity) }}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{% if header_actions_dropdown_menu is not defined %}
|
{% if header_actions_dropdown_menu is not defined %}
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
{% if configuration.action(context, 'back', true) %}
|
{% if configuration.action(context, 'back', true) %}
|
||||||
<a href="{{ path(configuration.pageRoute('index')) }}" class="btn btn-light">
|
<a href="{{ path(configuration.pageRoute('index')) }}" class="btn btn-light">
|
||||||
<span class="fa fa-list pr-1"></span>
|
<span class="fa fa-list pr-1"></span>
|
||||||
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -28,7 +30,9 @@
|
||||||
<a href="{{ path(configuration.pageRoute('edit'), {entity: entity.id}) }}" class="btn btn-primary">
|
<a href="{{ path(configuration.pageRoute('edit'), {entity: entity.id}) }}" class="btn btn-primary">
|
||||||
<span class="fa fa-edit pr-1"></span>
|
<span class="fa fa-edit pr-1"></span>
|
||||||
|
|
||||||
{{ configuration.actionTitle(context, 'edit', 'Edit')|trans|build_string(entity) }}
|
<span class="d-none d-md-inline">
|
||||||
|
{{ configuration.actionTitle(context, 'edit', 'Edit')|trans|build_string(entity) }}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue