<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Manage groups</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="{{base}}/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>
<body>

{% include 'navBar.twig' %}
<div class="content">
    <div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
        <h1>Group list</h1>
        {% include 'groupContainer.twig' with {'actions' : ['showGroupDetails', 'removeGroup']} %}
    </div>
    <div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
        <h1>Users of the group</h1>
        {% include 'userContainer.twig' with {'users' : users, 'action' : 'removeUserFromGroup'} %}
    </div>
        <div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
        <h1>Add group</h1>
        {% include 'addGroupForm.twig' %}
    </div>
    <div class="border my-2 py-2 border-5 border-secondary rounded-3 text-center">
        <h1>Unassigned users</h1>
        {% include 'userContainer.twig' with {'users' : unassignedUsers, 'action' : 'addUserToGroup'} %}
    </div>
</div>

</body>
</html>