2014-05-15 19:43:31 +03:00
|
|
|
{**
|
|
|
|
* Форма поиска
|
|
|
|
*
|
2014-10-10 19:29:24 +03:00
|
|
|
* @styles components/search-form/search-form.css
|
2014-05-15 19:43:31 +03:00
|
|
|
*
|
|
|
|
* TODO: Fix submit icon position
|
|
|
|
*}
|
|
|
|
|
|
|
|
{* Название компонента *}
|
2014-10-18 09:07:45 +03:00
|
|
|
{$component = 'search-form'}
|
2014-05-15 19:43:31 +03:00
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
<form action="{$smarty.local.action}" method="{$smarty.local.method|default:'get'}" class="{$component} {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {$smarty.local.attributes}>
|
2014-05-15 19:43:31 +03:00
|
|
|
{block 'search_form'}
|
|
|
|
{include 'components/field/field.text.tpl'
|
2014-10-18 09:07:45 +03:00
|
|
|
placeholder = ( $smarty.local.placeholder ) ? $smarty.local.placeholder : $aLang.search.search
|
|
|
|
note = $smarty.local.note
|
|
|
|
value = $smarty.local.value
|
|
|
|
inputClasses = "{$component}-input {$smarty.local.inputClasses}"
|
|
|
|
inputAttributes = $smarty.local.inputAttributes
|
|
|
|
name = $smarty.local.inputName|default:'q'}
|
2014-05-15 19:43:31 +03:00
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
{if ! $smarty.local.noSubmitButton}
|
|
|
|
{include 'components/button/button.tpl' mods='icon' classes="{$component}-submit" icon='icon-search'}
|
2014-05-15 19:43:31 +03:00
|
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
</form>
|