Add count display for account type tabs

- Add translations strings to AccountTypeTabs
This commit is contained in:
Hypolite Petovan 2018-11-17 08:52:23 -05:00
commit 4dad98fa04
2 changed files with 26 additions and 11 deletions

View file

@ -77,7 +77,11 @@ AGAINST (:query IN BOOLEAN MODE)";
$values = ['query' => $query];
$account_type = $args['account_type'] ?? '';
$accountTypeTabs = $this->accountTypeTabs->render('search', $account_type, $sql_where, $values, ['q' => $originalQuery, 'field' => $field]);
if ($account_type) {
$sql_where .= '
AND `account_type` = :account_type';
@ -93,7 +97,7 @@ AND `account_type` = :account_type';
'field' => $field,
'fieldName' => $fieldName,
'count' => $count,
'accountTypeTabs' => $this->accountTypeTabs->render('search', $account_type, ['q' => $originalQuery, 'field' => $field]),
'accountTypeTabs' => $accountTypeTabs,
'profiles' => $profiles,
'pager_full' => $pager->renderFull($count),
'pager_minimal' => $pager->renderMinimal($count),