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,40 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2026-01-08 00:57:14
|
||||
compiled from "/var/www/html/ventas/templates/forms/agregar-atributo-valor.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:1133224561695f554a99c885-58270892%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'8eb1d3eeabbdcdf0522ad01aa0479f87cb45a871' =>
|
||||
array (
|
||||
0 => '/var/www/html/ventas/templates/forms/agregar-atributo-valor.tpl',
|
||||
1 => 1767836456,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '1133224561695f554a99c885-58270892',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<div id="divForm">
|
||||
<form name="frmAgregarValor" id="frmAgregarValor" method="post" action="">
|
||||
<input type="hidden" name="type" id="type" value="saveValor" />
|
||||
<input type="hidden" name="atributoId" id="atributoId" value="<?php echo $_smarty_tpl->getVariable('atributoId')->value;?>
|
||||
" />
|
||||
<fieldset>
|
||||
<div class="a">
|
||||
<div class="l">* Nombre:</div>
|
||||
<div class="r"><input type="text" name="name" id="name" class="largeInput wide2"></div>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<hr />
|
||||
|
||||
* Campos requeridos
|
||||
<div class="formLine" style="text-align:center; padding-left:300px">
|
||||
<a class="button" id="btnSave"><span>Agregar</span></a>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user