Skip to content

Commit

Permalink
ordena
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed May 20, 2024
1 parent 6181418 commit f16f14e
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 408 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/msip.git
revision: f05236cc39947d3b5b47c621700d4e3b21787f9a
revision: 54f056503d1fe1ca997101585cfa0a6d080ad9af
branch: v2.2
specs:
msip (2.2.0.beta6)
Expand Down
14 changes: 7 additions & 7 deletions app/views/msip/personas/_filtro_centropoblado.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
collection: Msip::Centropoblado.habilitados.where(
municipio_id: municipio_id
),
label: false,
label_method: :nombre,
valud_method: :id,
selected: Msip::ModeloHelper.poromision(params, :buscentropoblado),
include_blank: true,
input_html: {
'data-enviarautomatico' => '',
class: 'tom-select',
data: {
"action": "change->msip--geodep#cambiar_centropoblado",
action: "change->msip--geodep#cambiar_centropoblado",
enviarautomatico: "",
"msip--geodep-target": "centropoblado"
},
value: centropoblado_id
},
include_blank: true
label: false,
label_method: :nombre,
selected: Msip::ModeloHelper.poromision(params, :buscentropoblado),
valud_method: :id
%>
12 changes: 6 additions & 6 deletions app/views/msip/personas/_filtro_departamento.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
params[:filtro][:busdepartamento].to_i : 0 %>
<%= f.input :busdepartamento,
collection: Msip::Departamento.habilitados.where(pais_id: pais_id),
label: false,
label_method: :nombre,
valud_method: :id,
selected: Msip::ModeloHelper.poromision(params, :busdepartamento),
include_blank: true,
input_html: {
'data-enviarautomatico' => '',
class: 'tom-select',
data: {
"action": "change->msip--geodep#cambiar_departamento",
enviarautomatico: '',
"msip--geodep-target": "departamento"
},
value: departamento_id
},
include_blank: true
label: false,
label_method: :nombre,
selected: Msip::ModeloHelper.poromision(params, :busdepartamento),
valud_method: :id
%>
12 changes: 6 additions & 6 deletions app/views/msip/personas/_filtro_municipio.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
collection: Msip::Municipio.habilitados.where(
departamento_id: departamento_id
),
label: false,
label_method: :nombre,
valud_method: :id,
selected: Msip::ModeloHelper.poromision(params, :busmunicipio),
include_blank: true,
input_html: {
'data-enviarautomatico' => '',
class: 'tom-select',
data: {
"action": "change->msip--geodep#cambiar_municipio",
enviarautomatico: '',
"msip--geodep-target": "municipio"
},
value: municipio_id
},
include_blank: true
label: false,
label_method: :nombre,
selected: Msip::ModeloHelper.poromision(params, :busmunicipio),
valud_method: :id
%>
14 changes: 7 additions & 7 deletions app/views/msip/personas/_filtro_pais.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
params[:filtro][:buspais].to_i : 0 %>
<%= f.input :buspais,
collection: Msip::Pais.habilitados,
label: false,
label_method: :nombre,
valud_method: :id,
selected: Msip::ModeloHelper.poromision(params, :buspais),
include_blank: true,
input_html: {
'data-enviarautomatico' => '',
class: 'tom-select',
data: {
"action": "change->msip--geodep#cambiar_pais"
"action": "change->msip--geodep#cambiar_pais",
enviarautomatico: ''
},
value: pais_id
},
include_blank: true
label: false,
label_method: :nombre,
selected: Msip::ModeloHelper.poromision(params, :buspais),
valud_method: :id
%>
Loading

0 comments on commit f16f14e

Please sign in to comment.