<?php
// FROM HASH: bf39ed0c518cab2d69fc48316bf8143f
return array(
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	if ($__templater->method($__vars['route'], 'isInsert', array())) {
		$__finalCompiled .= '
	';
		$__templater->pageParams['pageTitle'] = $__templater->preEscaped('Add route');
		$__finalCompiled .= '
';
	} else {
		$__finalCompiled .= '
	';
		$__templater->pageParams['pageTitle'] = $__templater->preEscaped('Edit route' . $__vars['xf']['language']['label_separator'] . ' ' . $__templater->escape($__vars['route']['unique_name']));
		$__finalCompiled .= '
';
	}
	$__finalCompiled .= '

';
	if ($__templater->method($__vars['route'], 'isUpdate', array())) {
		$__templater->pageParams['pageAction'] = $__templater->preEscaped('
	' . $__templater->button('', array(
			'href' => $__templater->func('link', array('routes/delete', $__vars['route'], ), false),
			'icon' => 'delete',
			'overlay' => 'true',
		), '', array(
		)) . '
');
	}
	$__finalCompiled .= '

';
	$__compilerTemp1 = array(array(
		'value' => '',
		'label' => '&nbsp;',
		'_type' => 'option',
	));
	if ($__templater->isTraversable($__vars['routeTypes'])) {
		foreach ($__vars['routeTypes'] AS $__vars['routeTypeId'] => $__vars['routeType']) {
			$__compilerTemp1[] = array(
				'value' => $__vars['routeTypeId'],
				'label' => $__templater->escape($__vars['routeType']),
				'_type' => 'option',
			);
		}
	}
	$__finalCompiled .= $__templater->form('

	<div class="block-container">
		<div class="block-body">
			' . $__templater->formSelectRow(array(
		'name' => 'route_type',
		'value' => $__vars['route'],
	), $__compilerTemp1, array(
		'label' => 'Route type',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'route_prefix',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Route prefix',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'sub_name',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Sub-name',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'format',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Route format',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'context',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Section context',
	)) . '

			' . $__templater->formRow('

				' . $__templater->callMacro(null, 'helper_callback_fields::callback_fields', array(
		'namePrefix' => 'build',
		'data' => $__vars['route'],
	), $__vars) . '
			', array(
		'rowtype' => 'input',
		'label' => 'Link building callback',
		'explain' => 'It is possible to modify the default link building process with a callback which can be used to add or modify the information used to build the link.<br />
<br />
Callback arguments:
<ol>
	<li><code>&amp;$prefix</code><br />The route prefix for the link being built.</li>
	<li><code><strong>array</strong> &amp;$route</code><br />An array containing the configuration of this route.</li>
		<li><code>&amp;$action</code><br />The current action portion of the link being built.</li>
		<li><code>&amp;$data</code><br />The current data passed into the link being built. This is most likely an entity object.</li>
		<li><code><strong>array</strong> &amp;$params</code><br />An array of URL parameters passed into the link being built.</li>
</ol>',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'controller',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Controller',
	)) . '

			' . $__templater->formTextBoxRow(array(
		'name' => 'action_prefix',
		'value' => $__vars['route'],
		'dir' => 'ltr',
	), array(
		'label' => 'Action prefix',
	)) . '

			' . $__templater->callMacro(null, 'addon_macros::addon_edit', array(
		'addOnId' => $__vars['route']['addon_id'],
	), $__vars) . '
		</div>
		' . $__templater->formSubmitRow(array(
		'sticky' => 'true',
		'icon' => 'save',
	), array(
	)) . '
	</div>

', array(
		'action' => $__templater->func('link', array('routes/save', $__vars['route'], ), false),
		'ajax' => 'true',
		'class' => 'block',
	));
	return $__finalCompiled;
}
);