Sha256: 0590bc7b44f1fd24dcbfa42adc8263c3970dfd9c7e606f13d87167b38c368f7e
Contents?: true
Size: 789 Bytes
Versions: 4
Compression:
Stored size: 789 Bytes
Contents
- if Current.namespace == :tenant && \ @model.class.inline_editable?(@unsuffixed_attribute) && helpers.policy(@model).edit? = helpers.turbo_frame_tag(@frame_id, class: 'inline-edit') - if @record_updated pg-event[data-event-name="pg:record-updated" data-inline="true" data-turbo-temporary="" data-response='#{@model.decorate.to_json}'] = link_to tenant_inline_edit_path(model: @model.to_gid, attribute: @attribute), data: { \ controller: :tooltip, 'bs-title': "Modificar #{@model.class.human_attribute_name(@attribute).downcase}" }, class: 'edit-link', style: 'font-size: 0.8em' do i.bi.bi-pencil span = @model.decorate.send(@attribute) - else = @model.decorate.send(@attribute)
Version data entries
4 entries across 4 versions & 1 rubygems