Sha256: 7be4fe9ff3ab39ff8c1dcc80ae833c2cc4f1fe05ddcabeffa531a0b06834c427
Contents?: true
Size: 811 Bytes
Versions: 27
Compression:
Stored size: 811 Bytes
Contents
<% if @field.value %> <turbo-frame id="<%= @field.turbo_frame %>" src="<%= @field.frame_url %>" target="_top" class="block"> <%= render(Avo::LoadingComponent.new(title: @field.name)) %> </turbo-frame> <% else %> <%= render Avo::PanelComponent.new(name: @field.name) do |c| %> <% c.tools do %> <% if !@field.is_readonly? && can_attach? %> <%= a_link attach_path, icon: 'heroicons/outline/link', color: :primary, 'data-turbo-frame': 'attach_modal' do %> <%= t('avo.attach_item', item: @field.name.downcase) %> <% end %> <% end %> <% end %> <% c.body do %> <div class="py-8 flex justify-center items-center"> <%= empty_state resource_name: @field.id, related_name: params[:related_name] %> </div> <% end %> <% end %> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems