<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<section data-page>
	<div class="container">
		<h1 class="section_title"><?= $arResult['NAME']; ?></h1>
		<div class="vacancy">
			<? if(!is_null($arResult['PROPERTIES']['REGION']['RELATED']) && count($arResult['PROPERTIES']['REGION']['RELATED']) > 0): ?>
				<p><strong>Регион:</strong> 
				<? $c = 0; foreach($arResult['PROPERTIES']['REGION']['RELATED'] AS $region): ?>
					<?= $region['NAME']; ?>
					<?= $c < (count($arResult['PROPERTIES']['REGION']['RELATED']) -1 ) ? ", " : ""; ?>
					<? $c++; ?>
					<? endforeach; ?></p>
				<br>
			<? endif; ?>
			<p><?= $arResult['DETAIL_TEXT']; ?></p>
			<br>
			<p><strong>Обязанности:</strong></p>
			<br>
			<p><?= $arResult['PROPERTIES']['RESPONSIBILITIES']['~VALUE']['TEXT']; ?></p>
			<br>
			<p><strong>Требования к кандидату:</strong></p>
			<br>
			<p><?= $arResult['PROPERTIES']['DEMANDS']['~VALUE']['TEXT']; ?></p>
			<br>
			<p><strong>Условия:</strong></p>
			<br>
			<p><?= $arResult['PROPERTIES']['RULES']['~VALUE']['TEXT']; ?></p>
		</div>
	</div>
</section>
<?
	$APPLICATION->IncludeComponent(
		"evolution:form.vacancy",
		"",
		Array(
			"VACANCY" => $arResult["NAME"], 
			"VACANCY_REGIONS" => $arResult['REGIONS'], 
		)
	);
?>