Sha256: e23174c6bbccb39e7dc224ae85dcd18285d239dd3d68390e6665c0128a1e9dd1

Contents?: true

Size: 1012 Bytes

Versions: 17

Compression:

Stored size: 1012 Bytes

Contents

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

      / html5 solo aplica a datetime
      / date_selector solo aplica a date
      / ignore_date y prompt solo aplica a time
      / cada caso es inocuo para el resto de los types
      = f.field @unsuffixed_attribute, label: false, date_selector: true, minute_step: 15,
        ignore_date: true, prompt: { hour: 'hh', minute: 'mm' }
      .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 tenant_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

17 entries across 17 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.22 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.22.pre.3 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.22.pre.2 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.22.pre.1 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.11 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.10 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.9 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.8 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.7 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.6 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.5 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.4 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.3 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.2 pg_engine/app/components/inline_edit/inline_edit_component.html.slim
pg_rails-7.6.21.pre.1 pg_engine/app/components/inline_edit/inline_edit_component.html.slim