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

26 lines
996 B
Smarty
Raw Normal View History

2014-05-15 19:43:31 +03:00
{**
* Форма поиска
*
* @styles components/search-form/search-form.css
2014-05-15 19:43:31 +03:00
*
* TODO: Fix submit icon position
*}
{* Название компонента *}
{$component = 'search-form'}
2014-05-15 19:43:31 +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'
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
{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>