Sha256: f58b133bab4beaa2e7adfd550657cd39c474200f754eb058ea16a9c578223a69
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
<div class = "nested-fields" > <%= tab_form.fields_for field.nested_form.resource_name do |nested_form| %> <% old_tab_form = tab_form self.tab_form = nested_form %> <%- fields.each do |field| %> <% if field.is_a?(Array) %> <%# implement fieldset in nested form here%> <% else %> <%= render_component *field.build(field.nested_form.options) %> <% end %> <%- end %> <% self.tab_form = old_tab_form %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lolita-3.1.14 | app/views/components/lolita/configuration/tab/_nested_form.html.erb |
lolita-3.1.13 | app/views/components/lolita/configuration/tab/_nested_form.html.erb |