A1
{% if g.user %}
<h1 class="container display-4">Показатель: {{pok_name}}</h1>
<br>
<form action="{{url_for('main.uploads_file_sheet_render')}}" method="post" enctype="multipart/form-data">
<button type="submit" class="container btn btn-lg btn-block btn-outline-primary">Загрузить данные в базу данных </button>
<br>
<table class="container table">
<thead>
<th scope="col">Область
{% for year in years %}
<th scope="col">{{ year }}</th>
{% endfor %}
</thead>
<tbody>
{% for area in data %}
<tr>
<th scope="row">{{ area }}</th>
{% for year in years %}
<td>{{ data[area].years.get(year,'-') }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</form>