develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #45
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
@include('layout.body.scripts.datatables')
|
||||
|
||||
@push('page_scripts')
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
class Row
|
||||
{
|
||||
proyecto
|
||||
@ -45,6 +45,9 @@
|
||||
draw() {
|
||||
const tipo = this.unidad.proyecto_tipo_unidad.tipo_unidad.descripcion
|
||||
let unidad = tipo.charAt(0).toUpperCase() + tipo.slice(1) + ' ' + this.unidad.descripcion
|
||||
if (typeof this.venta !== 'undefined') {
|
||||
unidad = this.venta.propiedad.tipologia
|
||||
}
|
||||
let precio = 0
|
||||
let propietario = ''
|
||||
let fecha = ''
|
||||
@ -55,6 +58,7 @@
|
||||
if (!this.venta.current_estado.tipo_estado_venta.activa) {
|
||||
unidad.html(unidad.html() + ' (I)')
|
||||
}
|
||||
unidad.html(unidad.html() + ' <i class="angle right icon"></i>')
|
||||
propietario = $('<a></a>')
|
||||
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
|
||||
.html(this.venta.propietario.nombre_completo)
|
||||
|
Reference in New Issue
Block a user