Sha256: eac3ec35e2ad8b56891d30bcca9f774cb1678bfba2aa8dbd1b9820e2fe7521e9

Contents?: true

Size: 1007 Bytes

Versions: 113

Compression:

Stored size: 1007 Bytes

Contents

- custom_actions = available_actions(cm_model, ar_object, '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
              - if custom_action.partial
                = render partial: custom_action.partial
              - else
                = render partial: 'cm_admin/main/custom_action_modal_form', locals: { custom_action: custom_action, ar_object: ar_object }

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
cm-admin-4.4.8 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.4.6 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.4.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.4.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.3.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.2.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.2.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.1.2 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.1.1 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.1.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-4.0.0 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.16 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.15 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.14 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.13 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.12 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.11 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.10 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.9 app/views/cm_admin/main/_member_custom_action_modal.html.slim
cm-admin-3.0.8 app/views/cm_admin/main/_member_custom_action_modal.html.slim