From b1817c4a09b4d35862bcfbbfb88fe5e828f29fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20T=C3=A1mara=20Pati=C3=B1o?= Date: Mon, 25 Sep 2023 10:58:38 -0500 Subject: [PATCH] Listado de victimas y operaciones con victimas. Closes #557 --- Gemfile.lock | 4 ++-- config/locales/es.yml | 2 ++ lib/sivel2_gen/concerns/controllers/personas_controller.rb | 2 +- test/dummy/app/views/layouts/application.html.erb | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d4c39f7b6..706440b83 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,7 +25,7 @@ GIT GIT remote: https://gitlab.com/pasosdeJesus/heb412_gen.git - revision: cdc1f02aca0680473a79ce44090dea76e275312e + revision: 0e403ed5aa25e2b283840486106274bd61373ff2 branch: main specs: heb412_gen (2.2.0.beta4) @@ -45,7 +45,7 @@ GIT GIT remote: https://gitlab.com/pasosdeJesus/msip.git - revision: 58dcbf715199bf976ef563474c89cc2c45c93cf2 + revision: 78c00df5860282e8cd77c18488331c6b79b64dfe branch: main specs: msip (2.2.0.beta4) diff --git a/config/locales/es.yml b/config/locales/es.yml index cbfeb78c7..ef98db848 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -28,6 +28,8 @@ es: tsitio: Tipo de sitio clase: Centro poblado "msip/persona": + Persona: Víctima + Personas: Víctimas anionac: Año de nacimiento clase: Centro poblado de nacimiento departamento: Estado/Departamento de nacimiento diff --git a/lib/sivel2_gen/concerns/controllers/personas_controller.rb b/lib/sivel2_gen/concerns/controllers/personas_controller.rb index 686bb3ce2..d35d40a27 100644 --- a/lib/sivel2_gen/concerns/controllers/personas_controller.rb +++ b/lib/sivel2_gen/concerns/controllers/personas_controller.rb @@ -20,7 +20,7 @@ def atributos_show end def atributos_form - atributos_show - [:id, :caso_ids] + atributos_form_msip - [:caso_ids] end def remplazar_antes_destruir_p diff --git a/test/dummy/app/views/layouts/application.html.erb b/test/dummy/app/views/layouts/application.html.erb index e46c69762..c2e3ec70e 100644 --- a/test/dummy/app/views/layouts/application.html.erb +++ b/test/dummy/app/views/layouts/application.html.erb @@ -19,6 +19,8 @@ desplegable: true %> <%= opcion_menu "Importar relatos XRLAT", sivel2_gen.casos_importarrelatos_path, desplegable: true %> + <%= opcion_menu "Víctimas", + msip.personas_path, desplegable: true %> <% end %> <% end %> <%= despliega_abajo "Reportes y conteos" do %>