• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/resthandler.php
  • Класс: BitrixSalePaySystemRestHandler
  • Вызов: RestHandler::createInput
private function createInput(string $name, array $input): string
{
	if (!in_array($input['TYPE'], ['Y/N', 'STRING', 'ENUM'], true))
	{
		return '';
	}

	if ($input['HIDDEN'] === 'Y')
	{
		return InputManager::getEditHtml($name, $input);
	}

	$inputHtml = '';
	$input['STYLE'] = "max-width: 300px;";

	if ($input['TYPE'] === 'Y/N')
	{
		$input['CLASS'] = "form-check-input";

		$inputHtml .= '
'; $inputHtml .= InputManager::getEditHtml($name, $input); $inputHtml .= ''; $inputHtml .= '
'; } elseif ($input['TYPE'] === 'STRING' || $input['TYPE'] === 'ENUM') { $input['CLASS'] = "form-control"; $inputHtml .= '
'; $inputHtml .= ''; $inputHtml .= InputManager::getEditHtml($name, $input); $inputHtml .= '
'; } return $inputHtml; }