This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.isAclEnabled() and admin.canAccessObject('acl', object) and admin.hasRoute('acl') %}
<li>
<a class="sonata-action-element" href="{{ admin.generateObjectUrl('acl', object) }}">
<i class="fa fa-users" aria-hidden="true"></i>
{{ 'link_action_acl'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% endif %}

View File

@@ -0,0 +1,30 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.hasAccess('create') and admin.hasRoute('create') %}
{% if admin.subClasses is empty %}
<li>
<a class="sonata-action-element" href="{{ admin.generateUrl('create') }}">
<i class="fa fa-plus-circle" aria-hidden="true"></i>
{{ 'link_action_create'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% else %}
{% for subclass in admin.subclasses|keys %}
<li>
<a class="sonata-action-element" href="{{ admin.generateUrl('create', {'subclass': subclass}) }}">
<i class="fa fa-plus-circle" aria-hidden="true"></i>
{{ 'link_action_create'|trans({}, 'SonataAdminBundle') }} {{ subclass|trans({}, admin.translationdomain) }}
</a>
</li>
{% endfor %}
{% endif %}
{% endif %}

View File

@@ -0,0 +1,19 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.canAccessObject('edit', object) and admin.hasRoute('edit') %}
<li>
<a class="sonata-action-element" href="{{ admin.generateObjectUrl('edit', object) }}">
<i class="fa fa-edit" aria-hidden="true"></i>
{{ 'link_action_edit'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% endif %}

View File

@@ -0,0 +1,19 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.canAccessObject('history', object) and admin.hasRoute('history') %}
<li>
<a class="sonata-action-element" href="{{ admin.generateObjectUrl('history', object) }}">
<i class="fa fa-archive" aria-hidden="true"></i>
{{ 'link_action_history'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% endif %}

View File

@@ -0,0 +1,19 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.hasAccess('list') and admin.hasRoute('list') %}
<li>
<a class="sonata-action-element" href="{{ admin.generateUrl('list') }}">
<i class="fa fa-list" aria-hidden="true"></i>
{{ 'link_action_list'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% endif %}

View File

@@ -0,0 +1,18 @@
{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if admin.canAccessObject('show', object) and admin.show|length > 0 and admin.hasRoute('show') %}
<li>
<a class="sonata-action-element" href="{{ admin.generateObjectUrl('show', object) }}">
<i class="fa fa-eye" aria-hidden="true"></i>
{{ 'link_action_show'|trans({}, 'SonataAdminBundle') }}
</a>
</li>
{% endif %}