27 lines
1.1 KiB
Twig
27 lines
1.1 KiB
Twig
{% extends 'manage/news/master.twig' %}
|
|
{% from 'macros.twig' import pagination, container_title %}
|
|
|
|
{% block manage_content %}
|
|
<div class="container">
|
|
{{ container_title('News Posts') }}
|
|
|
|
<a href="{{ url('manage-news-post-create') }}" class="input__button">New Post</a>
|
|
|
|
{% for post in news_posts %}
|
|
<p>
|
|
<a href="{{ url('manage-news-post-edit', {'post': post.post_id}) }}" class="input__button">{{ post.post_id }}</a>
|
|
<a href="{{ url('manage-news-category-edit', {'category': post.category_id}) }}" class="input__button">Cat: {{ post.category_id }}</a>
|
|
{{ post.post_is_featured }},
|
|
{{ post.user_id }},
|
|
{{ post.post_title }},
|
|
{{ post.post_scheduled }},
|
|
{{ post.post_created }},
|
|
{{ post.post_updated }},
|
|
{{ post.post_deleted }},
|
|
{{ post.comment_section_id }}
|
|
</p>
|
|
{% endfor %}
|
|
|
|
{{ pagination(posts_pagination, '/manage/news.php', null, {'v': 'posts'}) }}
|
|
</div>
|
|
{% endblock %}
|