24 lines
980 B
Twig
24 lines
980 B
Twig
{% extends 'admin/base-admin.html.twig' %}
|
|
|
|
{% block title %}Administration - Posts{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="floating-btn">
|
|
<a href="{{ path('post-add') }}" class="btn btn-primary btn-floating" >
|
|
<i class="fas fa-plus"></i>
|
|
</a>
|
|
</div>
|
|
<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 %}
|