Sha256: 97239badc3b6df5b764171e9a2d775597a1244627b9b388835060b66b7747c9f
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
<div> <% @resource.panels.each do |resource_panel| %> <%= form_with model: @resource.model, url: helpers.resources_path(resource: @resource, via_relation_class: params[:via_relation_class], via_resource_id: params[:via_resource_id]), local: true, multipart: true do |form| %> <%= render Avo::PanelComponent.new(title: resource_panel[:name], display_breadcrumbs: true) do |c| %> <% c.tools do %> <div class="flex justify-end space-x-2"> <%= a_link back_path do %> <%= svg 'arrow-left' %> <%= t('avo.cancel').capitalize %> <% end %> <%= a_button color: 'green', spinner: true, type: :submit do %> <%= svg 'save' %> <%= t('avo.save').capitalize %> <% end if @resource.authorization.authorize_action :create, raise_exception: false %> </div> <% end %> <% c.body do %> <% @resource.get_fields.each_with_index do |field, index| %> <%= render field.component_for_view(:edit).new(field: field, resource: @resource, index: index, form: form) unless field.computed %> <% end %> <% end %> <% end %> <% end %> <% end %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems