{# vim: ft=htmljinja
#}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - {{ group.name }}{% endblock %}
{% block content %}
<ul id="submenu">
    <li><a href="{{ path('KekRozsakFrontBundle_groupMembers', {slug: group.slug}) }}">Tagok</a></li>
    <li><a href="{{ path('KekRozsakFrontBundle_groupView', {slug: group.slug}) }}">Leírás</a></li>
</ul>
<h3>{{ group.name }} - Dokumentumok</h3>
<table>
    <thead>
        <tr>
            <td colspan="2">Cím</td>
            <td>Készítette</td>
        </tr>
    </thead>
    <tbody>
{% for document in group.documents %}
        <tr>
            <td>[ikon]</td>
            <td><a href="{{ path('KekRozsakFrontBundle_documentView', {slug: document.slug}) }}">{{ document.title }}</a></td>
            <td>
                {{ document.createdBy|userdataspan }}<br />
                {{ document.createdAt|date('Y-m-d H:i') }}
            </td>
        </tr>
{% endfor %}
    </tbody>
</table>
<a href="{{ path('KekRozsakFrontBundle_documentCreate', {slug: group.slug}) }}">Új dokumentum</a>
{% endblock %}
