Sha256: a00bedcf1d5371f51f98c63f05f6ac2533eb00b0da741ba9caa6855642fa4037
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
<div class="controls col-sm-10" data-nestedmany="true"> <div class="btn-group"> <a class="<%= (field.active? ? 'active' : '') %> btn btn-info toggler" data-bs-target="<%= form.jquery_namespace(field) %> .collapse" data-bs-toggle="collapse" role="button"> <i class="fas"></i> </a> <% unless field.nested_form[:update_only] || !field.inline_add %> <%= form.link_to_add "<i class=\"fas fa-plus\"></i> #{wording_for(:link, :new, field.associated_model_config.abstract_model)}".html_safe, field.name, { class: 'btn btn-info' } %> <% end %> </div> <%= form.errors_for(field) %> <%= form.help_for(field) %> <ul class="nav nav-tabs collapse"></ul> </div> <div class="tab-content collapse"> <%= form.fields_for field.name do |nested_form| %> <% if field.nested_form[:allow_destroy] || nested_form.options[:child_index] == "new_#{field.name}" %> <%= nested_form.link_to_remove '<span class="btn btn-danger"><i class="fas fa-trash"></i></span>'.html_safe %> <% end %> <%= nested_form.generate({action: :nested, model_config: field.associated_model_config, nested_in: field }) %> <% end %> </div>
Version data entries
13 entries across 13 versions & 1 rubygems