1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/forms/form.search.base.tpl

40 lines
1.4 KiB
Smarty
Raw Normal View History

2014-03-08 15:26:08 +02:00
{**
* Базовый шаблоны формы поиска
*
* bNoSubmitButton Не показывать кнопку Искать
*
* @styles css/forms.css
*}
{block name='search_before'}{/block}
<form action="{block name='search_action'}{/block}"
method="{block name='search_method'}get{/block}"
class="search-form search-form-type-{block name='search_type'}default{/block} {block name='search_classes'}{/block}"
{block name='search_attributes'}{/block}>
{block name='search_begin'}{/block}
{block name='search_input'}
<div class="search-form-search">
<input type="text"
class="search-form-input width-full {block name='search_input_classes'}{/block}"
name="{block name='search_input_name'}q{/block}"
value="{block name='search_input_value'}{$aReq.q|escape:'html'}{/block}"
autocomplete="off"
placeholder="{block name='search_input_placeholder'}{$aLang.search.search}{/block}"
{block name='search_input_attributes'}{/block}>
{if ! $bNoSubmitButton}
<input type="submit"
value="{block name='search_submit_value'}{/block}"
title="{block name='search_submit_title'}{$aLang.search.find}{/block}"
class="search-form-submit icon-search"
{block name='search_submit_attributes'}{/block}>
{/if}
</div>
{/block}
{block name='search_end'}{/block}
</form>
{block name='search_after'}{/block}