mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
26 lines
996 B
Smarty
26 lines
996 B
Smarty
{**
|
|
* Форма поиска
|
|
*
|
|
* @styles components/search-form/search-form.css
|
|
*
|
|
* TODO: Fix submit icon position
|
|
*}
|
|
|
|
{* Название компонента *}
|
|
{$component = 'search-form'}
|
|
|
|
<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}>
|
|
{block 'search_form'}
|
|
{include 'components/field/field.text.tpl'
|
|
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'}
|
|
|
|
{if ! $smarty.local.noSubmitButton}
|
|
{include 'components/button/button.tpl' mods='icon' classes="{$component}-submit" icon='icon-search'}
|
|
{/if}
|
|
{/block}
|
|
</form> |