Sha256: 358370b5c9097d8692e7b8dcf6471809f7dd62a0f5ade682dd5ee8e89ad7e3f7
Contents?: true
Size: 1.48 KB
Versions: 22
Compression:
Stored size: 1.48 KB
Contents
<div> <% @resource.panels.each do |resource_panel| %> <%= form_with model: @resource.model, scope: @resource.form_scope, url: helpers.resources_path(resource: @resource, via_relation_class: params[:via_relation_class], via_relation: params[:via_relation], via_resource_id: params[:via_resource_id]), local: true, multipart: true do |form| %> <%= render Avo::PanelComponent.new(title: resource_panel[:name], description: @resource.resource_description, 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 %> <% if can_see_the_save_button? %> <%= a_button color: 'green', spinner: true, type: :submit do %> <%= svg 'save' %> <%= t('avo.save').capitalize %> <% end %> <% end %> </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
22 entries across 22 versions & 1 rubygems