<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Manage Vocabulary List</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
        <!-- Font Awesome icons (free version)-->
        <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
        <!-- Google fonts-->
        <link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet" />
        <link
                href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
                rel="stylesheet" />
        <!-- Core theme CSS (includes Bootstrap)-->
    <link href="{{base}}/css/styles.css" rel="stylesheet" />
    </head>
</head>
<style>
    section {
        border: 2px solid black;
        margin: 10px 0;
    }
</style>
<body>
{% include 'navBar.twig' %}
<div class="content">
    <section class="VocabularyList">
        <h2>My lists</h2>
        {% include 'vocabularyContainer.twig' with {'actions' : ['affContent', 'delById', 'getContent' ], 'vocabularies' : vocabularies, 'vocabID' : vocabID, 'content' : content } %}
    </section>
    <section>
        <h2>Content</h2>
        {% if content is defined %}
        <table>
            <tr>
                <td>French word</td>
                <td>English word</td>
            </tr>
            {% for trad in content %}
            <tr>
                <td>trad.word1</td>
                <td>trad.word2</td>
            </tr>
            {% endfor %}
        </table>
        {% endif %}
    </section>
    <section>
        <h2>Groups</h2>
        {% if groups is defined %}
        {% include 'groupContainer.twig' with {'actions' : ['addVocabToGroup', 'removeVocabFromGroup'] } %}
        {% endif %}
    </section>
    </section>
        <a href="{{base}}/teacher/{{userID}}/showVocabListForm">
            <input class="btn-black" type="button" value="add a list" />
        </a>
</div>
</body>
</html>
