parent::buildQuickForm();
$this->addSortNameField();
+ if (CRM_Core_Permission::check('access deleted contacts') and CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'contact_undelete', NULL)) {
+ $this->addElement('checkbox', 'deleted_contacts', ts('Search deleted participants'));
+ }
+
CRM_Event_BAO_Query::buildSearchForm($this);
$rows = $this->get('rows');
<tr class="crm-event-search-form-block-sort_name">
<td class="font-size12pt" colspan="2">
{$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} {$form.buttons.html}
+ {if $form.deleted_contacts}
+ <tr class="crm-event-search-form-block-deleted_contacts">
+ <td colspan="2">
+ {$form.deleted_contacts.html} {$form.deleted_contacts.label}
+ </td>
+ </tr>
+ {/if}
</td>
</tr>