FIX: para subir a produccion

This commit is contained in:
2020-06-08 17:05:55 -04:00
parent c65cc00a9e
commit 450819f6b4
5 changed files with 8 additions and 18 deletions

View File

@ -37,7 +37,7 @@ foreach ($files as $file) {
$container = $builder->build(); $container = $builder->build();
$container->set('env', $__environment); $container->set('env', $__environment);
$app = Bridge::create($container); $app = Bridge::create($container);
$app->setBasePath($container->get('base_url')); $app->setBasePath($container->get('urls.base'));
foreach ($folders as $folder) { foreach ($folders as $folder) {
$filename = implode(DIRECTORY_SEPARATOR, [ $filename = implode(DIRECTORY_SEPARATOR, [

View File

@ -37,6 +37,6 @@ class Base {
]); ]);
$resumen = json_decode(trim(file_get_contents($filename))); $resumen = json_decode(trim(file_get_contents($filename)));
$indicadores = ['uf' => 'UF', 'euro' => 'Euro', 'imacec' => 'IMACEC', 'dolar' => 'USD', 'ipc' => 'IPC', 'utm' => 'UTM', 'bitcoin' => 'BitCoin', 'libra_cobre' => 'Lb. Cu']; $indicadores = ['uf' => 'UF', 'euro' => 'Euro', 'imacec' => 'IMACEC', 'dolar' => 'USD', 'ipc' => 'IPC', 'utm' => 'UTM', 'bitcoin' => 'BitCoin', 'libra_cobre' => 'Lb. Cu'];
return $view->render($response, 'home', compact('aviso', 'avisos', 'destacados', 'segmentos', 'resumen', 'indicadores')); return $view->render($response, 'home', compact('avisos', 'destacados', 'segmentos', 'resumen', 'indicadores'));
} }
} }

View File

@ -40,6 +40,7 @@
) )
) )
) )
$('#thumbnails .image').css('cursor', 'pointer')
}) })
$('#galeria').find('.grid .image').click(function(e) { $('#galeria').find('.grid .image').click(function(e) {
var id = $(this).attr('data-id') var id = $(this).attr('data-id')
@ -57,6 +58,7 @@
var id = $(this).attr('data-id') var id = $(this).attr('data-id')
galeria.changeImage(id) galeria.changeImage(id)
}) })
$('#thumbnails .image').css('cursor', 'pointer')
} }
} }
$(document).ready(() => { $(document).ready(() => {

View File

@ -9,7 +9,6 @@ class Bodega extends Producto {
'tamaño', 'tamaño',
'oficina', 'oficina',
'superficie', 'superficie',
'arriendo',
'uf_m2' 'uf_m2'
]; ];
@ -34,7 +33,7 @@ class Bodega extends Producto {
], ],
[ [
'label' => 'Valor Arriendo', 'label' => 'Valor Arriendo',
'name' => 'arriendo', 'name' => 'valor',
'suffix' => ' UF' 'suffix' => ' UF'
], ],
[ [

View File

@ -10,26 +10,16 @@ class Oficina extends Producto {
'm2', 'm2',
'baños', 'baños',
'privados', 'privados',
'gastos', 'plazo',
'uf_m2' 'uf_m2'
]; ];
/*public function uf_m2() {
return $this->valor / ($this->m2 ?? 1);
}*/
public function privados() { public function privados() {
if ($this->privados == 0) { if ($this->privados == 0) {
return 'planta libre'; return 'planta libre';
} }
return 'privados ' . $this->privados; return 'privados ' . $this->privados;
} }
public function map($data): Model {
parent::map($data);
if (strpos($this->gastos, '.') === false and $data->gastos != '') {
$this->gastos = number_format($data->gastos, 0, ',', '.');
}
return $this;
}
public function getProperties(): array { public function getProperties(): array {
$properties = parent::getProperties(); $properties = parent::getProperties();
foreach ($properties as &$property) { foreach ($properties as &$property) {
@ -70,9 +60,8 @@ class Oficina extends Producto {
public function getShow() { public function getShow() {
$data = $this->getFicha(); $data = $this->getFicha();
$data []= (object) [ $data []= (object) [
'label' => 'Gastos Comunes', 'label' => 'Plazo de Contrato',
'name' => 'gastos', 'name' => 'plazo'
'prefix' => '$'
]; ];
$data []= (object) [ $data []= (object) [
'label' => 'UF/m²', 'label' => 'UF/m²',