Skip to content

Commit

Permalink
usa nuevo controlador de msip y stimulus para bitacora a nivel de apl…
Browse files Browse the repository at this point in the history
…icación
  • Loading branch information
vtamara committed Aug 3, 2023
1 parent d7814b9 commit 6f3e964
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/msip/personas/_persona_campos.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div data-controller='<%= cont %>'>
<%= f.input :id, as: :hidden,
input_html: {"data-msip--sindocaut-target": "id"} %>
<div class="row">
<div class="row">
<div class="col-md-6">
<%= render partial: 'msip/personas/campo_nombres',
locals: {f: f, nombre_fuente: "fuente-victimas"} %>
Expand All @@ -16,7 +16,7 @@
locals: {f: f, nombre_fuente: "fuente-victimas"} %>
</div>
</div>

<div class="row">
<div class="col-md-6">
<%= render partial: 'msip/personas/campo_tdocumento_nobusca',
Expand Down
10 changes: 7 additions & 3 deletions app/views/sivel2_gen/casos/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
});
</script-->
<% @pestanas_formulariocaso = controller.pestanas_formulariocaso %>
<%= simple_form_for @caso,
url: sivel2_gen.casos_path(@caso).sub(/\./,"/"),
html: { class: 'form-horizontal' } do |f|
<%= simple_form_for @caso,
url: sivel2_gen.casos_path(@caso).sub(/\./,"/"),
html: {
class: 'form-horizontal',
"data-controller": "msip--bitacoraap",
"data-action": "submit->msip--bitacoraap#enviarFormulario"
} do |f|
%>
<div data-role="content" class="form-inputs">

Expand Down

0 comments on commit 6f3e964

Please sign in to comment.