Sha256: 65b573e4598f724db34b666dc21abf39e1503b2af9765ddd9c5b07cd35cf9813
Contents?: true
Size: 1.43 KB
Versions: 15
Compression:
Stored size: 1.43 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_class.model_name.route_key %>" data-resource-id="<%= params[:id] %>" class="hidden text-blue-gray-800" > <%= form_with model: @model, scope: 'fields', url: "/avo/resources/#{@resource.model_class.model_name.route_key}/actions/#{@action.param_id}", data: {'turbo-frame': '_top', 'action-target': 'form'} do |form| %> <%= render Avo::ModalComponent.new do |c| %> <% c.with :heading do %> <%= @action.name %> <% end %> <div class="flex-1 flex items-center justify-center px-8 text-lg mt-8 mb-12"> <%= @action.message %> </div> <%= form.hidden_field :resource_ids, value: params[:resource_ids], 'data-action-target': 'resourceIds' %> <% if @action.get_fields.present? %> <% @action.get_fields.each_with_index do |field, index| %> <%= edit_field field, index, nil, form, displayed_in_modal: true %> <% end %> <% end %> <% c.with :controls do %> <%= a_button @action.cancel_button_label, 'data-action': 'click->modal#close', size: :sm %> <%= a_button @action.confirm_button_label, type: :submit, color: :green, size: :sm %> <% end %> <% end %> <% end %> </div> <% end %>
Version data entries
15 entries across 15 versions & 1 rubygems