Sha256: 5392b9ece8efba7f8882e4a581d5276dd28b580c71aac4ff7d87a6fef8f0455a

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

- custom_action_with_modals = @model.available_actions.select{ |act| act if act.display_type == :modal }
- if @associated_model
  - custom_action_with_modals += @associated_model.available_actions.select{ |act| act if act.display_type == :modal }
- custom_action_with_modals.each do |custom_action|
  .modal.fade id="#{custom_action.name.classify}Modal" 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" type="button" 
        .modal-body
          = render partial: custom_action.partial

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cm-admin-1.1.9 app/views/layouts/_custom_action_modals.html.slim
cm-admin-1.1.8 app/views/layouts/_custom_action_modals.html.slim
cm-admin-1.1.7 app/views/layouts/_custom_action_modals.html.slim