Sha256: 2cf95bdf2366f420f815ba1fa4695612441a2c23c9b684c284eaa4f92f7c663e

Contents?: true

Size: 755 Bytes

Versions: 19

Compression:

Stored size: 755 Bytes

Contents

<%= tag.div(**html_attributes) do %>
  <label><%= label %></label>
  <%#
    # Template is stored inside the new item dom, and copied into drag
    # events when the user initiates drag so that it can be copied into the
    # editor list on drop.
    #
  %>
  <template data-<%= NEW_ITEM_CONTROLLER %>-target="template">
    <%= render row_component do %>
      <%= render item_component %>
    <% end %>
  </template>
<% end %>
<%#
  # Remove items that are incomplete when rendering new items, this
  # causes incomplete items to be removed from the list when the user
  # cancels adding a new item by pressing 'discard' in the new item form.
%>
<%= turbo_stream.replace dom_id(item) do %>
  <%= render item_component(data: { delete: "" }) %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katalyst-content-2.7.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.6.2 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.6.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.6.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.5.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.5.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.4.2 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.4.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.3.2 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.3.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.3.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.2.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.1.4 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.1.3 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.1.2 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.1.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.1.0 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.0.1 app/components/katalyst/content/editor/new_item_component.html.erb
katalyst-content-2.0.0 app/components/katalyst/content/editor/new_item_component.html.erb