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

{% block title %}
	List
{% endblock %}

{% block body %}
	{{ parent() }}
	<main>
		<div id="myCharts">
			<h1>Grafy</h1>
			<a href="{{ path('charts_create') }}" id="createChart">Vytvořit nový graf</a>
			<div id="myChartList">
				{% for chart in charts %}
					<span>
						<a href={{ chart.id ~ "/edit" }} id="editChart">{{ chart.name }}</a>
						<a href={{ chart.id ~ "/remove" }} id="removeChart">Smazat</a>
					</span>
				{% endfor %}
			</div>
		</div>
	</main>
{% endblock %}
