Skip to content

Commit

Permalink
Se quita campo con id de entidad. Closes #259
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed May 1, 2024
1 parent 616e873 commit fdc559a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/cor1440_gen.git
revision: 2a806db73626e67a556ed815c0b2bae01aa8779a
revision: 545e18f528856bda7548449efd1832c961be80d9
branch: v2.2
specs:
cor1440_gen (2.2.0.beta6)
Expand All @@ -46,7 +46,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/heb412_gen.git
revision: d8384cabfb55646440d6b578b291d64992ceb11a
revision: 3b40ccd9efd5d844e58a26c640bd2b6e17cf03e3
branch: v2.2
specs:
heb412_gen (2.2.0.beta6)
Expand All @@ -65,7 +65,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/mr519_gen.git
revision: 96a9848e5aa7caf38a9d802e1d11a2ead37d4626
revision: bde099fc81e5329da703e6d1382e567159ebaa15
branch: v2.2
specs:
mr519_gen (2.2.0.beta6)
Expand Down Expand Up @@ -94,7 +94,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/sivel2_gen.git
revision: 5344aba66457191c771e9349db9449b9c1a84216
revision: b1ee39da8a2337dfcba69a249ea8b5d309b5d800
branch: v2.2
specs:
sivel2_gen (2.2.0.beta6)
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/AutocompletaAjaxEntidad.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class AutocompletaAjaxEntidad {
console.log("AutocompletaAjaxEntidad")
let url = window.puntomontaje + '/orgsociales.json'
var aeEntidades = new window.AutocompletaAjaxExpreg(
[ /^caso_victima_attributes_[0-9]*_entidad_id$/],
[ /^caso_victima_attributes_[0-9]*_entidad_nombre$/],
url,
AutocompletaAjaxEntidad.idDatalist,
AutocompletaAjaxEntidad.operarElegida
Expand Down
17 changes: 7 additions & 10 deletions app/views/sivel2_gen/casos/_campo_vinculoestado.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<div class='grupo-entidad'>
<div>
<%= f.input :entidad_id, as: :string,
placeholder: "Buscar entidad por nombre o por código",
input_html: { list: 'fuente-entidades' } %>
</div>
<div>
<%= f.input :entidad_nombre,
label: false,
input_html: {
readonly: "readonly"
} %>
<%= f.input :entidad_id, as: :hidden %>
<%= f.input :entidad_nombre,
label: false,
placeholder: "Buscar entidad por nombre o por código",
input_html: {
list: 'fuente-entidades'
} %>
</div>
</div>
<!--% col = Msip::ModeloHelper.opciones_tabla_basica(
Expand Down

0 comments on commit fdc559a

Please sign in to comment.