Sha256: e285765202b12ff27e4b05aedddc867554a10659251fd34bb7a9e2719ab1797f

Contents?: true

Size: 851 Bytes

Versions: 10

Compression:

Stored size: 851 Bytes

Contents

<%= turbo_frame_tag params[:turbo_frame] do %>
  <%= content_tag :div, class: "-mx-2" do %>
    <%= content_tag :div, class: "px-6 py-4" do %>
      <div class="text-md font-semibold uppercase text-gray-800">Previewing <%= @resource.record_title %></div>
    <% end %>

    <% if @preview_fields.present? %>
      <div class="mt-0 divide-y border-t">
        <% @preview_fields.each_with_index do |field, index| %>
          <%= render field
            .hydrate(
              resource: @resource,
              record: @resource.record,
              user: @resource.user,
              view: Avo::ViewInquirer.new(:show)
            )
            .component_for_view(:show)
            .new(field: field, resource: @resource, index: index, compact: true, short: true)
          %>
        <% end %>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avo-3.14.5 app/views/avo/base/preview.html.erb
avo-3.14.4 app/views/avo/base/preview.html.erb
avo-3.14.3 app/views/avo/base/preview.html.erb
avo-3.14.2 app/views/avo/base/preview.html.erb
avo-3.14.1 app/views/avo/base/preview.html.erb
avo-3.14.0 app/views/avo/base/preview.html.erb
avo-3.13.7 app/views/avo/base/preview.html.erb
avo-3.13.6 app/views/avo/base/preview.html.erb
avo-3.13.5 app/views/avo/base/preview.html.erb
avo-3.13.4 app/views/avo/base/preview.html.erb