Sha256: 2b3e74fcf669ded719b7a45ee27f94c01c842687f9999de18af78dc7f6a5bcc6

Contents?: true

Size: 632 Bytes

Versions: 10

Compression:

Stored size: 632 Bytes

Contents

- actions.each_with_index do |a, idx|
  - cf_sym = "link_inner#{idx}".to_sym
  = content_for cf_sym do
    - icon_key = "activerecord.actions.icons.#{a.sym}"
    - if I18n.exists?(icon_key)
      %i.fa{ class: I18n.t(icon_key)}
    = resource_form_action_label(@resource, a.sym)

  - if a.turbo_frame.blank?
    = link_to({ controller: a.controller, action: a.action }, method: a.verb, class: 'btn btn-tool') do
      = yield cf_sym
  - else
    = link_to({ controller: a.controller, action: a.action }, class: 'btn btn-tool', data: { turbo: true, turbo_method: a.verb, turbo_frame: a.turbo_frame }) do
      = yield cf_sym
   

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.43.a app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.43 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.42 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.41 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.40 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.39 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.38 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.37 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.36 app/views/application/_resource_form_actions.html.haml
five-two-nw-olivander-0.1.2.35 app/views/application/_resource_form_actions.html.haml