Sha256: 855a4b0fd6ae41feea0bc7eeb18b8e9d9a837a3e9c634a3ee19a91d0eb599656
Contents?: true
Size: 1.07 KB
Versions: 23
Compression:
Stored size: 1.07 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]) 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| %> <%= edit_field field, index, @resource, form unless field.computed %> <% end %> <% end %> <% end %> <% end %> <% end %> </div>
Version data entries
23 entries across 23 versions & 1 rubygems