<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<div class="row">
    <div class="container">
        <h3 style="text-align: center;"><?= $titulo ?></h3>
    </div>
</div>
<div class="row">
    <a href="<?= base_url('participantes/get_archivo_csv') ?>" target="_blank" id="download-file" class="btn btn-info btn-xs"><i class="fa fa-file"></i> Descargar archivo de ejemplo</a>
</div>
<div class="row contenedor-form" style="margin-top: 20px;">     
    <?php
    $form_data = ['name' => 'upload_form', 'id' => 'upload-form', 'class' => 'upload-form'];
    ?>
    <?php echo form_open_multipart('participantes/upload_csv', $form_data); ?>
    <div class="col-lg-6 col-md-6">
        <div class="form-group input-type"> 
            <div class="input-group">
                <div class="input-group-addon">
                    <i class="fa fa-file"></i>
                </div>
                <?php echo form_upload(['name' => 'file', 'id' => 'file', 'class' => 'form-control',]) ?>   
            </div>
        </div> 

    </div> 
</div>
</div>
<div class="row">
    <div class="container">
        <div class="col-lg-4 col-md-4">
            <div class="input-group submit-forms">
                <?php echo form_submit('submit', 'Cargar Datos', "class='btn btn-default btn-load'"); ?>
            </div>  
        </div>

    </div>
</div>
<?php echo form_close(); ?>
<div class="row">
    <div class="container">
        <a href="<?= base_url('participantes') ?>" class="back-link">Regresar a Participantes</a>
    </div>
</div>

<?php $this->load->view('template/footer.php'); ?>