diff --git a/ui/common/Controller/Config.php b/ui/common/Controller/Config.php new file mode 100644 index 0000000..1ee4dda --- /dev/null +++ b/ui/common/Controller/Config.php @@ -0,0 +1,12 @@ +render($response, 'config.list'); + } +} \ No newline at end of file diff --git a/ui/common/Controller/Home.php b/ui/common/Controller/Home.php index 86ad804..60f6942 100644 --- a/ui/common/Controller/Home.php +++ b/ui/common/Controller/Home.php @@ -9,4 +9,7 @@ class Home { public function __invoke(Request $request, Response $response, View $view): Response { return $view->render($response, 'home'); } + public function info(Request $request, Response $response, View $view): Response { + return $view->render($response, 'info'); + } } diff --git a/ui/common/Controller/TiposCategorias.php b/ui/common/Controller/TiposCategorias.php new file mode 100644 index 0000000..efe0b87 --- /dev/null +++ b/ui/common/Controller/TiposCategorias.php @@ -0,0 +1,12 @@ +render($response, 'categorias.tipos.list'); + } +} diff --git a/ui/common/Controller/TiposCuentas.php b/ui/common/Controller/TiposCuentas.php new file mode 100644 index 0000000..e2f1ec4 --- /dev/null +++ b/ui/common/Controller/TiposCuentas.php @@ -0,0 +1,12 @@ +render($response, 'cuentas.tipos.list'); + } +} diff --git a/ui/php.ini b/ui/php.ini new file mode 100644 index 0000000..2f3a539 --- /dev/null +++ b/ui/php.ini @@ -0,0 +1,4 @@ +[PHP] +display_errors = E_ALL +log_errors = true +error_log = /var/log/php/error.log diff --git a/ui/public/assets/scripts/categorias.list.js b/ui/public/assets/scripts/categorias.list.js index 0fcefa2..ef89080 100644 --- a/ui/public/assets/scripts/categorias.list.js +++ b/ui/public/assets/scripts/categorias.list.js @@ -1,28 +1,92 @@ +class Categoria { + constructor({id, nombre, tipo_id, tipo, saldo, saldoFormateado}) { + this.id = id + this.nombre = nombre + this.tipo_id = tipo_id + this.tipo = tipo + this.modal = null + } + setModal(modal) { + this.modal = modal + } + draw() { + return $('