Sha256: 00e5633025025191619f7385f52d2bd8f6d27e6ead90916a9384f6e4aa4f7f05

Contents?: true

Size: 1.15 KB

Versions: 69

Compression:

Stored size: 1.15 KB

Contents

<div>
  <% @resource.panels.each do |resource_panel| %>
    <%= form_with model: @resource.model, url: helpers.resources_path(@resource.model, 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', 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

69 entries across 69 versions & 1 rubygems

Version Path
avo-1.18.2 app/components/avo/views/resource_new_component.html.erb
avo-1.18.2.pre.0 app/components/avo/views/resource_new_component.html.erb
avo-1.18.1 app/components/avo/views/resource_new_component.html.erb
avo-1.18.0 app/components/avo/views/resource_new_component.html.erb
avo-1.18.0.pre.3 app/components/avo/views/resource_new_component.html.erb
avo-1.18.0.pre.2 app/components/avo/views/resource_new_component.html.erb
avo-1.18.0.pre.1 app/components/avo/views/resource_new_component.html.erb
avo-1.17.1 app/components/avo/views/resource_new_component.html.erb
avo-1.17.0 app/components/avo/views/resource_new_component.html.erb
avo-1.16.4 app/components/avo/views/resource_new_component.html.erb
avo-1.16.3 app/components/avo/views/resource_new_component.html.erb
avo-1.16.2 app/components/avo/views/resource_new_component.html.erb
avo-1.16.1 app/components/avo/views/resource_new_component.html.erb
avo-1.16.0 app/components/avo/views/resource_new_component.html.erb
avo-1.15.0 app/components/avo/views/resource_new_component.html.erb
avo-1.15.0.pre.1 app/components/avo/views/resource_new_component.html.erb
avo-1.14.0 app/components/avo/views/resource_new_component.html.erb
avo-1.13.3 app/components/avo/views/resource_new_component.html.erb
avo-1.13.2 app/components/avo/views/resource_new_component.html.erb
avo-1.13.1 app/components/avo/views/resource_new_component.html.erb