Sha256: edacc695b27e6b9c93f5c0850f3931e73b0c7ca4e3c8dbc9a7f304123d02bc44
Contents?: true
Size: 1.89 KB
Versions: 3
Compression:
Stored size: 1.89 KB
Contents
<%= turbo_frame_tag "actions_show" do %> <div data-controller="action" data-no-confirmation="<%= @action.no_confirmation %>" data-action-target="controllerDiv" data-resource-name="<%= @resource.model_key %>" data-resource-id="<%= params[:id] %>" class="hidden text-slate-800" > <%= form_with model: @model, scope: 'fields', url: "#{@resource.records_path}/actions/#{@action.param_id}", local: true, data: @action.class.form_data_attributes do |form| %> <%= render Avo::ModalComponent.new do |c| %> <% c.heading do %> <%= @action.action_name %> <% end %> <div class="flex-1 flex"> <%= @action.message %> </div> <%= form.hidden_field :avo_resource_ids, value: params[:resource_ids], 'data-action-target': 'resourceIds' %> <%= form.hidden_field :avo_selected_query, 'data-action-target': 'selectedAllQuery' %> <% if @action.get_fields.present? %> <div class="my-4 -mx-6"> <% @action.get_fields.each_with_index do |field, index| %> <%= render field .hydrate(resource: @resource, model: @resource.model, user: @resource.user, view: @view) .component_for_view(@view) .new(field: field, resource: @resource, index: index, form: form, compact: true) %> <% end %> </div> <% end %> <% c.controls do %> <%= a_button type: :button, data: { action: 'click->modal#close' }, size: :sm, color: :gray do %> <%= @action.cancel_button_label %> <% end %> <%= a_button type: :submit, color: :green, style: :primary, size: :sm, data: @action.class.submit_button_data_attributes do %> <%= @action.confirm_button_label %> <% end %> <% end %> <% end %> <% end %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
avo-2.21.1.pre.issue1450 | app/views/avo/actions/show.html.erb |
avo-2.21.1.pre.issue1444 | app/views/avo/actions/show.html.erb |
avo-2.20.0 | app/views/avo/actions/show.html.erb |