...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
- Класс: \CCrmViewHelper
- Вызов: CCrmViewHelper::RenderOrderShipmentStatusSettings
static function RenderOrderShipmentStatusSettings() { $result = array(); $isTresholdPassed = false; foreach(self::PrepareOrderShipmentStatuses() 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'] === 'DF') { $isTresholdPassed = true; $info['semantics'] = 'success'; $info['hint'] = GetMessage('CRM_ORDER_SHIPMENT_STATUS_MANAGER_APPROVED_STEP_HINT'); } elseif($status['STATUS_ID'] === 'DD') { $info['semantics'] = 'failure'; } elseif(!$isTresholdPassed) { $info['semantics'] = 'process'; } else { $info['semantics'] = 'apology'; } $result[] = $info; } $messages = array( 'dialogTitle' => GetMessage('CRM_ORDER_SHIPMENT_STATUS_MANAGER_DLG_TTL'), 'failureTitle' => GetMessage('CRM_ORDER_SHIPMENT_STATUS_MANAGER_FAILURE_TTL'), 'selectorTitle' => GetMessage('CRM_ORDER_SHIPMENT_STATUS_MANAGER_SELECTOR_TTL'), ); return ''; }