Sha256: 61c3fd07ca8dd910b08f8b74e7f1b90596135b83547855387926141fa71911dd
Contents?: true
Size: 801 Bytes
Versions: 22
Compression:
Stored size: 801 Bytes
Contents
= render_entries(f.object.entries, f) .form-group.form-inline = entry_type_select = f.button :button, 'Add entry', type: :button, class: 'btn btn-success', id: "add-entry-to-#{f.object_name}-#{f.object.id}-#{f.options[:index]}" - if local_assigns[:delete_link].present? = delete_link -# TODO: fix index population related to array entry vs simple entry :javascript $flexite("[id='add-entry-to-#{f.object_name}-#{f.object.id}-#{f.options[:index]}']").on("click", function () { $flexite.get("#{new_array_entries_path}", { parent_id: "#{f.object.id}", form_index: "#{f.options[:index]}", prefix: "#{f.object_name}", index: $flexite("[id^='entry_new_entries_'][id$='type']").size(), type: $flexite(this).parent().find("#new_entry_type").val() }); });
Version data entries
22 entries across 22 versions & 1 rubygems