...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
- Класс: \CCrmViewHelper
- Вызов: CCrmViewHelper::RenderLeadStatusSettings
static function RenderLeadStatusSettings() { $result = array(); $isThresholdPassed = false; foreach(self::PrepareLeadStatuses() as $status) { $info = array( 'id' => $status['STATUS_ID'], 'name' => $status['NAME'], 'sort' => intval($status['SORT']), 'color' => isset($status['COLOR']) ? $status['COLOR'] : '' ); if($status['STATUS_ID'] === 'CONVERTED') { $isThresholdPassed = true; $info['semantics'] = 'success'; $info['name'] = $status['NAME']; $info['hint'] = GetMessage('CRM_LEAD_STATUS_MANAGER_CONVERTED_STEP_HINT'); } elseif($status['STATUS_ID'] === 'JUNK') { $info['semantics'] = 'failure'; } elseif(!$isThresholdPassed) { $info['semantics'] = 'process'; } else { $info['semantics'] = 'apology'; } $result[] = $info; } $messages = array( 'dialogTitle' => GetMessage('CRM_LEAD_STATUS_MANAGER_DLG_TTL'), //'apologyTitle' => Get?Message('CRM_LEAD_STATUS_MANAGER_APOLOGY_TTL'), 'failureTitle' => GetMessage('CRM_LEAD_STATUS_MANAGER_FAILURE_TTL'), 'selectorTitle' => GetMessage('CRM_LEAD_STATUS_MANAGER_SELECTOR_TTL'), 'checkErrorTitle' => GetMessage('CRM_LEAD_STAGE_MANAGER_CHECK_ERROR_TTL_MSGVER_1'), 'checkErrorHelp' => GetMessage('CRM_STAGE_MANAGER_CHECK_ERROR_HELP'), 'checkErrorHelpArticleCode' => '8233923', 'conversionCancellationTitle' => GetMessage('CRM_CONFIRMATION_DLG_TTL_MSGVER_1'), 'conversionCancellationContent' => GetMessage('CRM_LEAD_STATUS_MANAGER_CONVERSION_CANCEL_CNT_MSGVER_1') ); return ''; }