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