<div id='lp-alert' class="aui-core-notification-embeded-container"></div>

<div class="col-md-12">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/">Dasboard</a></li>
            <li class="breadcrumb-item actionbutton-link" data-href="articulos" title="Volver a articulos" >Articulos</a></li>
            <li class="breadcrumb-item active" aria-current="page">Mtto articulos</li>
        </ol>
    </div>
    <div class="col-md-12">
        <x-alert></x-alert>
    </div>
    
    <div class="col-md-12">
        <div class="card" style="text-align: left;">
            <div class="card-body">
                <form id="oForm" action="" method="post">
                    <div class="row"> 
                       
                        <div class="col-md-12 mt-2 mb-12">
                            <input type="text" readonly name="id"  value="<?php echo $CurId; ?>"  class="form-control registro-id">
                        </div>
                    </div>

                    <div class="row">
                         
                         <div class="col-md-6 mt-2 mb-12">
                            <label for="iditem"><strong>ID interno</strong></label>
                            <input type="text" name="iditem"  value="<?php echo $dataReg->iditem; ?>"  class="form-control">
                        </div>    
                    
                         
                         <div class="col-md-6 mt-2 mb-12">
                            <label for="codbarras"><strong>Codigo de barras</strong></label>
                            <input type="text" name="codbarras"  value="<?php echo $dataReg->codbarras; ?>"  class="form-control">
                        </div>   
                       
                    
                        <div class="col-md-6 mt-2 mb-12">
                            <label for="itemnombre"><strong>Descripcion</strong></label>
                            <input type="text" name="itemnombre"  value="<?php echo $dataReg->itemnombre; ?>"  class="form-control">
                            
                        </div>

                     
                        <div class="col-md-6 mt-2 mb-12">
                            <label for="marca"><strong>Marca</strong></label>
                            <input type="text" name="marca" value="<?php echo $dataReg->marca; ?>"  class="form-control">
                           
                        </div>

                        <div class="col-md-6 mt-2 mb-12">
                            <label for="modelo"><strong>Modelo</strong></label>
                            <input type="text" name="modelo" value="<?php echo $dataReg->modelo; ?>"  class="form-control">
                           
                        </div>

                        <div class="col-md-6 mt-2 mb-12">
                            <label for="idequival"><strong>Clasificacion </strong></label>
                            <input type="text" name="idequival" id="idequival" value="<?php echo $dataReg->idequival; ?>"  class="form-control">
                           
                        </div>

                         <div class="col-md-3 mt-2 mb-12">
                            <label for="clase"><strong> Precio/lista</strong></label>
                            <input type="text" name="preven1" id="preven1" value="<?php echo $dataReg->preven1; ?>"  class="form-control">
                          
                        </div>
                                             
                   
                        <div class="col-md-3 mt-2 mb-12">
                            <label for="clase"><strong> Clase</strong></label>
                            <select id='clase' name='clase' require class="form-control">
                                <option value='1'>1-Inventario</option>
                                <option value='2'>2-Gasto</option>
                                <option value='3'>3-Servicio</option>
                                <option value='4'>4-Prod.intermedio</option>
                                <option value='5'>5-Formula-labor</option>
                                <option value='6'>6-Formula-ensamble</option>

                            </select>
                          
                        </div>

                       

                                            
                                           
                        <div class="col-md-3 mt-2 mb-12">
                            <label ><strong>Activo</strong></label>
                            <input type="checkbox" name="activo" id ="activo"  <?php if($dataReg->activo >0){ echo 'checked';} ?> class="form-control"/>
                        </div>

                           <div class="col-md-3 mt-2 mb-12">
                            <label ><strong>Venta</strong></label>
                            <input type="checkbox" name="venta" id ="venta"  <?php if($dataReg->venta >0){ echo 'checked';} ?> class="form-control"/>
                        </div>


                    </div>
                 

                    <div class="row">
                    
                 
                        <div style="text-align: end" class="col-md-12 mt-4 mb-1">
                            <button class="btn btn-success actionbutton-save" data-href="articulos-grabar" style="color:aliceblue;" type="button">Guardar</button>
                        </div>



                    </div>
                </form>
            </div>
        </div>
    </div>

<script>
            $(document).ready(function() {
                $('#tipopersona').select2();
            });

             $(document).ready(function() {
                $('#mh_codactividad').select2();
            });

             $(document).ready(function() {
                $('#mh_municipio').select2();
            });

             $(document).ready(function() {
                $('#mh_departamento').select2();
            });

</script>

 <script src="views/js/main.js"></script>