Sha256: 70dbe5c1924f110fa1f42f60fbc30d88174f7a7609ab5ac7d1b21c89eb05f788

Contents?: true

Size: 412 Bytes

Versions: 46

Compression:

Stored size: 412 Bytes

Contents

<%= turbo_stream.replace(frame_id(@resource), template: "avo/base/new")  %>

<%= turbo_stream.append "alerts" do %>
  <%= render Avo::FlashAlertsComponent.new flashes: flash %>
<% end %>

<% if @record.errors.any? %>
  <%= turbo_stream.append("alerts") do %>
    <% @record.errors.full_messages.each do |message| %>
      <%= render Avo::AlertComponent.new :error, message %>
    <% end %>
  <% end %>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
avo-3.6.4 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.6.3 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.6.2 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.6.1 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.6.0 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.8 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.7 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.6 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.6.beta1 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.5 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.4 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.3 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.2 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.1 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.5.0 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.4.4 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.4.3 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.4.2 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.4.1 app/views/avo/base/create_fail_action.turbo_stream.erb
avo-3.4.0 app/views/avo/base/create_fail_action.turbo_stream.erb