Edit page working
This commit is contained in:
29
views/pages.html.twig
Normal file
29
views/pages.html.twig
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends '@novaconium/master.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{title}}</h1>
|
||||
<table class="pages-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Created</th>
|
||||
<th>Updated</th>
|
||||
<th>Draft</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for page in pages %}
|
||||
<tr>
|
||||
<td><a href="/novaconium/page/edit/{{ page.id }}">{{ page.title }}</a></td>
|
||||
<td>{{ page.created }}</td>
|
||||
<td>{{ page.updated|default('Not updated') }}</td>
|
||||
<td>{{ page.draft ? 'Draft' : 'Published' }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">No pages found.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user