$query = new CRM_Event_BAO_Query($this->get('formValues'));
$qill = $query->qill();
+ // Values from the search form
+ $formValues = $this->controller->exportValues();
+
// need to save qill for the smarty template
$this->assign('qill', $qill);
}
else {
$this->addDefaultButtons(ts('Save Smart Group'));
+ $this->assign('partiallySelected', $formValues['radio_ts'] != 'ts_all');
}
$this->addRule('title', ts('Name already exists in Database.'),
<fieldset>
<legend>{ts}Smart Group{/ts}</legend>
-{if $qill[0]}
-<div id="search-status">
- <ul>
- {foreach from=$qill item=criteria}
- <li>{$criteria}</li>
- {/foreach}
- </ul>
- <br />
-</div>
-{/if}
+ <div class="help">
+ <p>{ts}This smart group will stay up-to-date with all contacts who meet the search criteria.{/ts}</p>
+ {if !empty($partiallySelected)}
+ <p>{ts}NOTE: Contacts selected on the search results are not relevant here; all contacts that meet the following criteria will be in the group.{/ts}</p>
+ {/if}
+ {if !empty($qill[0])}
+ <div id="search-status">
+ <ul>
+ {foreach from=$qill[0] item=criteria}
+ <li>{$criteria}</li>
+ {/foreach}
+ </ul>
+ </div>
+ {/if}
+ <p>{docURL page='user/current/organising-your-data/smart-groups/'}</p>
+ </div>
<table class="form-layout-compressed">
<tr class="crm-event-savesearch-form-block-title">