1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Blog/templates/post/posts.html.twig

25 lines
980 B
Twig
Raw Normal View History

2021-01-16 17:48:59 +01:00
{% extends 'admin/base-admin.html.twig' %}
{% block title %}Administration - Posts{% endblock %}
{% block body %}
2021-01-16 19:17:36 +01:00
<div class="floating-btn">
2021-01-16 19:02:19 +01:00
<a href="{{ path('post-add') }}" class="btn btn-primary btn-floating" >
<i class="fas fa-plus"></i>
</a>
</div>
2021-01-16 17:48:59 +01:00
<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 %}