<commit_before><?php
    echo "<h2 > Selecciona el <strong>nuevo proveedor</strong> que deseas asignar a este albarán:</h2 >";
    $provs[0] = "-- SELECCIONA UN PROVEEDOR --";
    foreach ($proveedores as $p) {
        $provs[$p->get('id')] = $p->get('nombre');
    }
    echo Form::open(array("class" => "form-horizontal")); ?>
    <fieldset>
        <div class="form-group">
            <?php echo Form::label('Id interno', 'id', array('class'=>'control-label')); ?>
            <?php echo Form::input('id', $id, array('class' => 'col-md-4 form-control', 'placeholder'=>'Idalbaran','readonly'=>'readonly')); ?>
        </div>
        <div class="form-group">
            <?php echo Form::label('Núm. Albarán', 'idalbaran', array('class'=>'control-label')); ?>
            <?php echo Form::input('idalbaran', $idalb, array('class' => 'col-md-4 form-control', 'placeholder'=>'Idalbaran','readonly'=>'readonly')); ?>
        </div>
        <div class="form-group">
            <?php echo Form::label('Nuevo proveedor (por defecto seleccionamos el actual)', 'provider', array('class'=>'control-label')); ?>
            <?php echo Form::select('provider', $current, $provs, array('class' => 'col-md-4 form-control')); ?>
        </div>
        <br/>
        <br/>

        <div class="form-group">
            <label class='control-label'>&nbsp;</label>
            <?php echo Form::button('editprov_submit', '<span class="glyphicon glyphicon-pencil"></span> Cambiar proveedor', array('class' => 'btn btn-primary','type'=>'submit')); ?>
        </div>
    </fieldset>
    <?php echo Form::close();
?><commit_msg>Last change on this change provider bug<commit_after><?php
    echo "<h2 > Selecciona el <strong>nuevo proveedor</strong> que deseas asignar a este albarán:</h2 >";
    $provs[0] = "-- SELECCIONA UN PROVEEDOR --";
    foreach ($proveedores as $p) {
        $provs[$p->get('id')] = $p->get('nombre');
    }
    echo "<p>Este cambio de proveedor sólo tendrá efecto para este único albarán</p>";
    echo Form::open(array("class" => "form-horizontal")); ?>
    <fieldset>
        <div class="form-group">
            <?php echo Form::label('Identificador del sistema', 'id', array('class'=>'control-label')); ?>
            <?php echo Form::input('id', $id, array('class' => 'col-md-4 form-control', 'placeholder'=>'Idalbaran','readonly'=>'readonly')); ?>
        </div>
        <div class="form-group">
            <?php echo Form::label('Núm. Albarán', 'idalbaran', array('class'=>'control-label')); ?>
            <?php echo Form::input('idalbaran', $idalb, array('class' => 'col-md-4 form-control', 'placeholder'=>'Idalbaran','readonly'=>'readonly')); ?>
        </div>
        <div class="form-group">
            <?php echo Form::label('Nuevo proveedor (por defecto seleccionamos el actual)', 'provider', array('class'=>'control-label')); ?>
            <?php echo Form::select('provider', $current, $provs, array('class' => 'col-md-4 form-control')); ?>
        </div>
        <br/>
        <div class="form-group">
            <label class='control-label'>&nbsp;</label>
            <p><?php echo Html::anchor('albaran/list', '<span class="glyphicon glyphicon-backward"></span> Volver',array('class'=>'btn btn-danger')); ?>
            <?php echo Form::button('editprov_submit', '<span class="glyphicon glyphicon-pencil"></span> Cambiar proveedor', array('class' => 'btn btn-primary','type'=>'submit')); ?></p>
        </div>
    </fieldset>
    <?php echo Form::close();
?>
{'fraction_non_alphanumeric': 0.21788990825688073, 'fraction_numerical': 0.0034403669724770644, 'mean_word_length': 3.3503740648379052, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7132811', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1100, 'n_words': 237}