Sha256: f9914c82ed2a8c68cbcfb431fc68fc536b2c71114421d5c483ac866aa0f1d0b2

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

= helpers.turbo_frame_tag(@frame_id, class: 'inline-edit')
  = helpers.pg_form_for(@model, render_errors: false, wrapper_mappings: @wrapper_mappings) do |f|
    = hidden_field_tag :inline_attribute, @attribute

    = f.field @unsuffixed_attribute, label: false, html5: true

    .actions.d-flex.gap-1
      = button_tag class: 'btn btn-sm btn-primary',
                   data: { controller: 'tooltip', 'bs-title': 'Guardar' } do
        i.bi.bi-check-lg
      = link_to users_inline_show_path(model: @model.to_gid, attribute: @attribute),
                class: 'btn btn-sm btn-secondary',
                data: { controller: 'tooltip', 'bs-title': 'Cancelar' } do
        i.bi.bi-x-lg

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_rails-7.6.6 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.5 pg_engine/app/components/inline_edit/inline_edit_component.html.slim