<table>
    <tr>
        <td>ID</td>
        <td>Name</td>
        <td>Image</td>
        <td>Author</td>
    </tr>

    {% if vocabularies is defined %}
        {% for row in vocabularies %}
            <tr>
                <td>{{ row.id }}</td>
                <td>{{ row.name }}</td>
                <td>{{ row.image }}</td>
                <td>{{ row.author }}</td>

                {% if actions is defined%}
                    <td>
                        {% if 'getContent' in actions %}
                            <a href="{{base}}/teacher/{{userID}}/getContent?vocabID={{row.id}}">
                                <input class="btn-black" type="button" value="aff content" />

                            </a>
                        {% endif %}

                        {% if 'delById' in actions %}
                            <a id="delButton" href="{{base}}/teacher/{{userID}}/delById?vocabID={{ row.id }}">
                                <input class="btn-black" type="button" value="delete from vocabulary" />
                            </a>
                        {% endif %}

            {% endif %}
        {% endfor %}

                    </td>

            </tr>

    {% endif %}
</table>