Skip to content

Commit

Permalink
Actualiza
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Jan 21, 2025
1 parent f9dda53 commit c948e3f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 18 deletions.
23 changes: 12 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -187,24 +187,24 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.4)
nokogiri (1.18.1)
nokogiri (1.18.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.1-aarch64-linux-gnu)
nokogiri (1.18.2-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.1-aarch64-linux-musl)
nokogiri (1.18.2-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.1-arm-linux-gnu)
nokogiri (1.18.2-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.1-arm-linux-musl)
nokogiri (1.18.2-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.1-arm64-darwin)
nokogiri (1.18.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.1-x86_64-darwin)
nokogiri (1.18.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.1-x86_64-linux-gnu)
nokogiri (1.18.2-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.1-x86_64-linux-musl)
nokogiri (1.18.2-x86_64-linux-musl)
racc (~> 1.4)
orm_adapter (0.5.0)
parallel (1.26.3)
Expand Down Expand Up @@ -292,7 +292,7 @@ GEM
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.28.0)
rubocop-rails (2.29.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
Expand Down Expand Up @@ -340,7 +340,8 @@ GEM
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
twitter_cldr (6.12.1)
twitter_cldr (6.13.0)
base64
camertron-eprun
cldr-plurals-runtime-rb (~> 1.1)
tzinfo
Expand Down
26 changes: 19 additions & 7 deletions app/views/msip/modelos/_msip_campo_aut.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,26 @@
<% nd = r.class_name.constantize.human_attribute_name(r.name.to_s) %>
<div class="panel panel-default">
<div class="panel-heading"><%= nd %></div>
<div class="panel-body">
<%= f.simple_fields_for r.name.to_sym do |cfo| %>
<%= render (r.name.to_s + '_campos'), :f => cfo %>
<div class="panel-body" id="<%= r.name %>_marco">
<%= f.simple_fields_for r.name.to_sym,
child_index: params[:index] do |cfo| %>
<%= render partial: (r.name.to_s + '_campos'),
locals: {f: cfo} %>
<% end %>
<div class="links">
<%= link_to_add_association "Añadir #{nd}", f,
r.name.to_sym, partial: (r.name.to_s + '_campos'),
:class => 'btn btn-sm btn-primary' %>
<div class="enlace-agregar-<%= r.name %>">
<% debugger %>
<%= f.submit "Agregar #{r.name}",
class: 'btn btn-sm btn-primary',
data: {
disable_with: false
},
formaction: cor1440_gen.crear_anexo_proyectofinanciero_path(
index: @registro[r.name].size
),
formmethod: :post,
formnovalidate: true,
id: "agregar-#{r.name}",
name: "agregar-#{r.name}" %>
</div>
</div> <!-- .panel-body -->
</div> <!-- .panel -->
Expand Down

0 comments on commit c948e3f

Please sign in to comment.