64 lines
2.1 KiB
Twig
64 lines
2.1 KiB
Twig
<div class="row">
|
|
<div class="col-md-4 pr-3">
|
|
<ul class="list-group">
|
|
<li class="list-group-item">
|
|
<span class="font-weight-bold pb-2 d-block">Titre</span>
|
|
|
|
{{ entity.title }}
|
|
</li>
|
|
<li class="list-group-item">
|
|
<span class="font-weight-bold pb-2 d-block">Sous-titre</span>
|
|
|
|
{{ entity.subTitle }}
|
|
</li>
|
|
<li class="list-group-item">
|
|
<span class="font-weight-bold pb-2 d-block">Slug</span>
|
|
|
|
{{ absolute_url(entity.slug) }}
|
|
</li>
|
|
<li class="list-group-item">
|
|
<span class="font-weight-bold pb-2 d-block">En ligne</span>
|
|
|
|
{{ entity.isActive ? 'oui' : 'non' }}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<div class="font-weight-bold pb-2">Description</div>
|
|
|
|
{{ entity.description|raw|nl2br }}
|
|
</div>
|
|
|
|
<div class="col-md-12 mt-3">
|
|
<table class="table border">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Derniers articles</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in configuration.viewDatas('show').posts %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ path('admin_blog_post_show', {entity: item.id}) }}" class="text-body">
|
|
{{ item.title }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td class="text-center p-4 text-black-50">
|
|
<div class="display-1">
|
|
<span class="fa fa-search"></span>
|
|
</div>
|
|
<div class="display-5 mt-3">
|
|
Aucun résultat
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|