This commit is contained in:
2023-11-23 00:53:49 -03:00
parent 9ab0515954
commit bf03e85975
32 changed files with 599 additions and 314 deletions

View File

@ -6,7 +6,7 @@
<form id="search_form" class="ui form" action="{{$urls->base}}/search" method="post">
<div class="field">
<div class="ui fluid input">
<div class="ui fluid input" data-tooltip="Para buscar frases se deben encerrar entre comillas. ej, 'portal la viña' o &quot;portal la viña&quot;" data-position="bottom left">
<input type="text" name="query" />
</div>
</div>
@ -65,6 +65,9 @@
unidad += '<i class="ban icon"></i>'
}
const numberFormat = new Intl.NumberFormat('es-CL', {minimumFractionDigits: 2, maximumFractionDigits: 2})
const superficie = numberFormat.format(Math.round(this.unidad.proyecto_tipo_unidad.superficie * 100) / 100)
return $('<tr></tr>').append(
$('<td></td>').append(
$('<a></a>').attr('href', '{{$urls->base}}/proyecto/' + this.proyecto.id).html(this.proyecto.descripcion)
@ -76,9 +79,9 @@
).append(
$('<td></td>').append(propietario)
).append(
$('<td></td>').addClass('right aligned').html(Math.round(this.unidad.proyecto_tipo_unidad.superficie * 100) / 100 + ' m&#0178;')
$('<td></td>').addClass('right aligned').html(superficie + ' m&#0178;')
).append(
$('<td></td>').addClass('right aligned').html(this.unidad.precio)
$('<td></td>').addClass('right aligned').html(numberFormat.format(this.unidad.precio))
).append(
$('<td></td>').html(fecha)
).append(