Sha256: b5095cb0b4e2c3f2431193336f3d21c2244f9f96764068cd152f7756656755cc
Contents?: true
Size: 1.08 KB
Versions: 22
Compression:
Stored size: 1.08 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| %> <%= panel(title: resource_panel[:name]) do |component| %> <% component.with :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 %> <% component.with :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
22 entries across 22 versions & 1 rubygems