$query = new CRM_Contact_BAO_Query($this->get('queryParams'));
$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.'),
'objectExists', array('CRM_Contact_DAO_Group', $groupID, 'title')
*}
<div class="crm-form-block crm-block crm-contact-task-createsmartgroup-form-block">
<h3>{ts}Smart Group{/ts}</h3>
- {if $qill[0]}
+ <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>
- <br />
</div>
- {/if}
+ {/if}
+ <p>{docURL page='user/current/organising-your-data/smart-groups/'}</p>
+ </div>
<table class="form-layout-compressed">
<tr class="crm-contact-task-createsmartgroup-form-block-title">
<td class="label">{$form.title.label}</td>