{% extends 'base.html.twig' %}
{% block title %} Reportes - Racing Cargo {% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://kit.fontawesome.com/f09ec0fe5b.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles/upload.css">
{% endblock %}
{% block body %}
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAbFBMVEXZIy7////YFCLXABDXABfZISzxubzYDh/76OrYHCjmhorWAAnWAADle3/qm57++vr1z9H98vP54eLvsbTmgYbzw8X87e7fUFf32drql5vtp6r0ysz21NbcPUXpkZXiZmzdR07bNDzgWV/jbnO2AhE9AAAMhklEQVR4nN1d2YKiOhDFLGIaEBfQ1nbapf//Hy/ghhiSqiQkeM/DvAytOZJaUluiiTvkP8VZRBbg4rQ7OFxQg8jVB+XTI2OE2xCsIAgV2Y+rNTVwxLCs6AlbercXSSgvvt0sq4YLhqsvQR3Ru5NMzvOlg5XVsGc4PaXWm/MdIk6PCwf8rBkud4JZKRcFCP23Ds1wlrHY/et7QrBongdkuPqjA2zPV3AW/1pyNGY4+0vJwPSuHGNqx9GQ4TJLvPC7coz33hnumDd+DUcWTb0ynEZsaPl740hPpk4AnuHqlPjmV0OkmZk4ohn+pkPZPx3i2GirIhkeziwQv6jeqpfN0AyLYC/wCsLwXg6G4fc5Dsoval4j1iNHMNwFfoFXkLgciOHyElAC2+Dp1yAMF8SrjVeCnTAKB8hwnoawgX0QDBHogDE80tCkXsHTuVOGm3/Bdegb6J9Dht9iDDq0i/gEdOL0DMtkjAQrsxHN3DDcj0rHtCEY6LihY7hLQhPpB6cQlaph+DUyJfoKngD8GzXDbNQEa6uhP1ApGY6dYAU9RRXDbCSeqBJaigqGxfjfYFTLooZiP8NxK5kneKLWqL0M92nopUPBU2VWtY/h+mMI1uHUFZ7hIkjE0BQiUoQ25AxX3kO+dhD/kAxz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YR4DujCNpao7bt8cjsLwE9FNFAkq75WfCLo/Axg59fUwpAnk4nJ6At4gszzFhxWKTL1f7s+Z8KENepCFsI8FMwi3SOKYsZgkjBgwrhbxNfHMUaYYaCz8rREoZTejlx+ySozLyWiImkgt+3vZsUZarHK1pHtgLbxwFPQFnoUhhfFFVvideOAp6truYweYqrorj0PIoEkt+dgwrD+A8ZIyDk2Rrsz9dMKx0zjYZKO/PY/bn4hot+wvjVgUbYLMSGs3d3FXv4kq8fH1KnQ5RFyw52m/PGxxd+jebnxM3JHlFb7t2ePmSu2sNV7szZZYjgThhbLt3szvvcHpx42x/MR/6z0VMxd/U+Z09rq+mzBe7rdEVWyI67ge5gfA/BIu5grwo/00AAAAASUVORK5CYII=">
<div class="row" style="min-height: 100vh;">
<div class="col-md-1 col-lg-3"></div>
<div class="col-md-10 col-lg-6">
<div class="card" style="width: 100%; margin-top: 15%">
<div class="card-body">
<h5 class="card-title" style="color: #5b67af; text-align: center;"><i class="fas fa-cloud-upload-alt" style="color: #5b67af; font-size: 60px"></i></h5>
<h6 class="card-subtitle mb-2"style="color: #5b67af;text-align: center;">Sube el archivo aquĆ:</h6>
<div class="custom-file mb-2 form-group">
<label class="custom-file-label required" for="form_archivo">Elegir Archivo</label>
<input id="form_archivo" type="file" required="required" accept=".xlsx, .csv, application/vnd.openxmlformats-officedocument.spreadsheethtml.sheet, application/vnd.ms-excel" class="d-none">
</div>
<div style="text-align: center;">
<div>
<button type="submit" id="form_Guardar" onclick="procesarArchivo()" class="btn btn-outline-success">Procesar Archivo</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-1 col-lg-3"></div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('js/upload.js') }}"></script>
<script>
var uploadFileUrl = "{{path ('_upload_file')}}";
$(document).on('change', '#form_archivo', function() {
var fileName = document.getElementById("form_archivo").files[0].name;
$('.custom-file-label').text(fileName);
});
</script>
{% endblock %}