20 lines
805 B
Twig
20 lines
805 B
Twig
|
{% extends 'admin/base-admin.html.twig' %}
|
||
|
|
||
|
{% block title %}Administration - Posts{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<div class="container-fluid">
|
||
|
{% for post in posts %}
|
||
|
<div class="card text-center">
|
||
|
<div class="card-body">
|
||
|
<h5 class="card-title">{{ post.title }}</h5>
|
||
|
<p class="card-text">{{ post.description }}</p>
|
||
|
<a href="{{ path('post-remove', {slug: post.slug}) }}" class="btn btn-danger">Delete</a>
|
||
|
<a href="{{ path('post-edit', {slug: post.slug}) }}" class="btn btn-primary">Edit</a>
|
||
|
</div>
|
||
|
<div class="card-footer text-muted">{{ post.publishedAt.format('Y-m-d H:i:s') }}</div>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endblock %}
|