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

{% block pp %}{{pp}}{% endblock %}

{% block css %}{{css}}{% endblock %}

{% block title %}Importer - HearthTrack{% endblock %}

{% block user %}{{user}} - {{role}}{% endblock %}

{% block body %}
<div class="container-fluid px-4">
                        <h1 class="mt-4">Importer</h1>
                        <ol class="breadcrumb mb-4">
                            <li class="breadcrumb-item"><a href="home.html">Accueil</a></li>
                            <li class="breadcrumb-item active">Importer</li>
                        </ol>

                        <div class="row">
                            <div class="col">
                                <div class="card mb-4">
                                    <div class="card-header">
                                        <img src="/assets/img/bupload.png"></i>
                                        Importer un fichier .fit
                                    </div>
                                    <div class="card-body">
                                    
                                        <div style="text-align:center; margin-bottom: 15px;">
                                            <label for="file-input">
                                                <img src="/assets/img/uploadW.svg"/>
                                            </label>
                                            <form action="/analyses" method="post">
                                                <input id="file-input" type="file" name="fileToUpload" value=""style="visibility: hidden;  width:0;  height:0;"/> 
                                                <input type="submit" value="Soumettre le fichier" name="submit"/>  
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        </div>
{% endblock %}