mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
26 lines
1 KiB
Smarty
26 lines
1 KiB
Smarty
{**
|
|
* Форма поиска
|
|
*
|
|
* @styles components/search_form/search_form.css
|
|
*
|
|
* TODO: Fix submit icon position
|
|
*}
|
|
|
|
{* Название компонента *}
|
|
{$_sComponentName = 'search-form'}
|
|
|
|
<form action="{$smarty.local.sAction}" method="{$smarty.local.sMethod|default:'get'}" class="{$_sComponentName} {mod name=$_sComponentName mods=$smarty.local.sMods} {$smarty.local.sClasses}" {$smarty.local.sAttributes}>
|
|
{block 'search_form'}
|
|
{include 'components/field/field.text.tpl'
|
|
sPlaceholder = ( $smarty.local.sPlaceholder ) ? $smarty.local.sPlaceholder : $aLang.search.search
|
|
sNote = $smarty.local.sNote
|
|
sValue = $smarty.local.sValue
|
|
sInputClasses = "{$_sComponentName}-input {$smarty.local.sInputClasses}"
|
|
sInputAttributes = $smarty.local.sInputAttributes
|
|
sName = $smarty.local.sInputName|default:'q'}
|
|
|
|
{if ! $bNoSubmitButton}
|
|
{include 'components/button/button.tpl' sMods='icon' sClasses="{$_sComponentName}-submit" sIcon='icon-search'}
|
|
{/if}
|
|
{/block}
|
|
</form> |