1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/application/frontend/skin/developer/components/search-form/search-form.tpl
2014-10-18 13:07:45 +07:00

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>