Sha256: 6338400a79501e7522a3832cc0cf99d2b57e16d7dcfbd7b4ed981aed60aca48a

Contents?: true

Size: 827 Bytes

Versions: 31

Compression:

Stored size: 827 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_title(custom_action)
              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

31 entries across 31 versions & 1 rubygems

Version Path
cm-admin-1.3.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.9 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.8 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.7 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.6 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.5 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.4 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.3 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.2 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.2.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.9 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.8 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.7 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.6 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.5 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.4 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.3 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.2 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-1.1.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim