{% extends '_includes/html/base.html.twig' %}

{% set page="Workspaces" %}

{% block pageContent %}
<div class="col-9">
	<div class="card">
		<div class="card-header">
			<h2>Workspaces</h2>
		</div>
		<div class="card-body">
			<table>
				<thead>
					<tr>
						<td>ID</td>
						<td>Nom</td>
						<td>Actif</td>
						<td></td>
					</tr>
				</thead>
				<tbody>
					{% for workspace in workspaces %}
					<tr>
						<td><code>
								{{ workspace.id }}
							</code></td>
						<td>{{ workspace.name }}</td>
						<td>{% if workspace.active %}<i
							class="icofont-checked color-green"></i> {% endif %}</td>
						<td></td>
					</tr>
					{% endfor %}
				</tbody>
			</table>
		</div>
	</div>
</div>
<div class="col-3">
	<div class="card">
		<div class="card-header">
			<h2>Ajouter un workspace</h2>
		</div>
		<div class="card-body">
			{% include '_includes/html/genericForm.html.twig' with {'form': workspaceAddForm} only %}
		</div>
	</div>
</div>
{% endblock %}