<!-- Rendering massive action widget for CPDB share panel -->
<?php

$this->widget('ext.admin.grid.MassiveActionsWidget.MassiveActionsWidget', array(
    'pk'          => 'selectedParticipantShare',
    'gridid'      => 'share_central_participants',
    'dropupId'    => 'tokenListActions',
    'dropUpText'  => gT('Selected participant share(s)...'),

    'aActions'    => array(
        // Delete
        array(
            // li element
            'type'        => 'action',
            'action'      => 'delete',
            'url'         =>  App()->createUrl('/admin/participants/sa/deleteMultipleParticipantShare/'),
            'iconClasses' => 'fa fa-trash text-danger',
            'text'        =>  gT('Delete'),
            'grid-reload' => 'yes',
            'on-success'  => "(function(result) { LS.AjaxHelper.onSuccess(result); })",

            // Modal
            'actionType'    => 'modal',
            'modalType'     => 'cancel-delete',
            'keepopen'      => 'no',
            'sModalTitle'   => gT('Unshare participant'),
            'htmlModalBody' => gT('Do you really want to delete the sharing of this participant?'),
            'aCustomDatas'  => array()
        ),
    )
));

?>
