{layout './../../../templates/@layout.latte'}
{block content}
	<div class="row-fluid help-module">
		<div class="span3">
			{include '@menu.latte'}
		</div>

		<div class="span9">
			<div class="box-content">
				<div class="top">
					<div style="float: left;">
						{form searchForm}
							<div class="input-append">
								{input search}
								{input submit}
							</div>
						{/form}
					</div>

					<div style="clear: both;"></div>
				</div>

				<div style="padding: 10px 0px 10px 0px;">
					<strong>Vyhledáváte:&nbsp;<span style="text-decoration: underline;">{$search}</span></strong>
				</div>

				<div class="article">
					<div n:foreach="$articles as $article">
						<h2><a n:href="detail, harticle => $article->id">{$article->title}</a></h2>
						{$article->text|striptags|truncate:500}
						<hr n:tag-if="!$iterator->last">
					</div>
				</div>
			</div>
		</div>
	</div>

	{include './../@js.latte'}
	<script>
		(function($) {
			searchTypeahead({!$jsonTags});
		})(jQuery);
	</script>
