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->set('env', $__environment);
$app = Bridge::create($container);
$app->setBasePath($container->get('base_url'));
$app->setBasePath($container->get('urls.base'));
foreach ($folders as $folder) {
$filename = implode(DIRECTORY_SEPARATOR, [

View File

@ -37,6 +37,6 @@ class Base {
]);
$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'];
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) {
var id = $(this).attr('data-id')
@ -57,6 +58,7 @@
var id = $(this).attr('data-id')
galeria.changeImage(id)
})
$('#thumbnails .image').css('cursor', 'pointer')
}
}
$(document).ready(() => {

View File

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

View File

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