feat(atributos): Mejora la funcionalidad de la página de atributos
- Deshabilita la paginación para mostrar todos los atributos por defecto. - Corrige un error de renderizado en 'atributos-valores.tpl' añadiendo etiquetas de cierre faltantes. - Cambia el orden de los atributos a 'atributoId' en 'atributo.class.php'. - Corrige un bug en 'atributoValor.class.php' descomentando una condición. - Asegura que las acciones AJAX (añadir, editar, eliminar) refresquen la lista correctamente sin paginación.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:36:31
|
||||
compiled from "/var/www/html/ventas/templates/items/atributos-valores-base.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1149131651695f506f649689-28610719%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'7db66415da9518f91ef873663ad93c2cf61a24d3' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/items/atributos-valores-base.tpl',
|
||||
1 => 1767836456,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1149131651695f506f649689-28610719',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<tr>
|
||||
<td align="center"> > </td>
|
||||
<td><?php echo $_smarty_tpl->getVariable('itm')->value['nombre'];?>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="javascript:void(0)" onclick="EditValorPopup(<?php echo $_smarty_tpl->getVariable('itm')->value['atribValId'];?>
|
||||
)">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/edit.gif" border="0" title="Editar"/>
|
||||
</a>
|
||||
<?php if ($_smarty_tpl->getVariable('itm')->value['atribValId']>2){?>
|
||||
<a href="javascript:void(0)" onclick="DeleteValorPopup(<?php echo $_smarty_tpl->getVariable('itm')->value['atribValId'];?>
|
||||
)">
|
||||
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
|
||||
/images/icons/delete.gif" border="0" title="Eliminar"/>
|
||||
</a>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user