Gergely POLONKAI (W00d5t0ck) 91e5d2336c Added skeleton for news editor
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-09-01 23:54:47 +02:00

34 lines
1.0 KiB
Twig

{# vim: ft=htmljinja
#}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block content %}
<h3>Adminisztráció - Hírek</h3>
<table>
<thead>
<tr>
<td></td>
<td>Cím</td>
<td>Írta</td>
<td>Dátum</td>
<td></td>
</tr>
</thead>
<tbody>
{% for item in news %}
<tr>
<td>
{% if item.public %}[Publikus ikon]{% else %}[Nem publikus ikon]{% endif %}
{% if item.sticky %}[Ragadós ikon]{% else %}[Nem ragadós ikon]{% endif %}
{% if item.draft %}[Vázlat ikon]{% else %}[Publikált ikon]{% endif %}
</td>
<td><a href="{{ path('KekRozsakAdminBundle_newsEdit', {slug: item.slug}) }}">{{ item.title }}</a></td>
<td>{{ item.createdBy|userdataspan }}</td>
<td>{{ item.createdAt|date('Y-m-d') }}</td>
<td>[Törlés ikon]</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}