Sha256: 0aafb82d68d3ae9aaddd72ceff532d2cda20a8adbd840c01e8e6acd213d6039f

Contents?: true

Size: 820 Bytes

Versions: 10

Compression:

Stored size: 820 Bytes

Contents

- custom_actions = available_actions(cm_model, 'custom_actions')
- custom_actions_modals = custom_actions.select{ |act| act if act.display_type.eql?(:modal) }
- ar_collection.data.each do |ar_object|
  - if custom_actions_modals.any?
    - custom_actions_modals.each do |custom_action|
      .modal.fade id="#{custom_action.name.classify}Modal-#{ar_object.id.to_s}" aria-hidden='true' aria-labelledby="#{custom_action.name.classify}ModalLabel" tabindex='1'
        .modal-dialog
          .modal-content
            .modal-header
              h5.modal-title id="#{custom_action.name.classify}ModalLabel" = custom_action.name.classify
              button.btn-close aria-label='Close' data-bs-dismiss='modal'
            .modal-body
              = render partial: custom_action.partial, locals: { ar_object: ar_object }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cm-admin-0.8.9 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.8 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.7 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.6 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.5 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.4 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.3 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.2 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-0.8.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim