1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/components/talk/talk-search-form.tpl

60 lines
2.4 KiB
Smarty
Raw Normal View History

{**
* Поиск по личным сообщениям
*}
2014-10-25 10:15:11 +03:00
{capture 'talk_search_form'}
<form action="{router page='talk'}" method="GET" name="talk_filter_form" {if $_aRequest.submit_talk_filter}style="display:block;"{/if}>
{* Отправитель *}
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'sender'
label = $aLang.talk.search.fields.sender.label
note = $aLang.talk.search.fields.sender.note
2015-10-28 13:00:45 +02:00
inputClasses = 'ls-width-full autocomplete-users'}
2014-10-25 10:15:11 +03:00
{* Получатель *}
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'receiver'
label = $aLang.talk.search.fields.receiver.label
note = $aLang.talk.search.fields.receiver.note
2015-10-28 13:00:45 +02:00
inputClasses = 'ls-width-full autocomplete-users'}
2014-10-25 10:15:11 +03:00
{* Искать в заголовке *}
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'keyword'
label = $aLang.talk.search.fields.keyword.label}
{* Искать в тексте *}
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'keyword_text'
label = $aLang.talk.search.fields.keyword_text.label}
{* Ограничения по дате *}
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'start'
placeholder = $aLang.talk.search.fields.start.placeholder
label = $aLang.talk.search.fields.start.label
2015-10-28 13:00:45 +02:00
inputClasses = 'ls-width-200 js-date-picker'}
2014-10-25 10:15:11 +03:00
{component 'field' template='text'
2014-10-25 10:15:11 +03:00
name = 'end'
placeholder = $aLang.talk.search.fields.end.placeholder
2015-10-28 13:00:45 +02:00
inputClasses = 'ls-width-200 js-date-picker'}
2014-10-25 10:15:11 +03:00
{* Искать только в избранном *}
{component 'field' template='checkbox' name='favourite' label=$aLang.talk.search.fields.favourite.label}
2014-10-25 10:15:11 +03:00
{* Кнопки *}
{component 'button'
2014-10-25 10:15:11 +03:00
name = 'submit_talk_filter'
value = '1'
mods = 'primary'
text = $aLang.search.find}
{component 'button' type='reset' text=$aLang.common.form_reset}
2014-10-25 10:15:11 +03:00
</form>
{/capture}
{component 'details'
classes = 'js-talk-search-form'
title = {lang 'talk.search.title'}
content = $smarty.capture.talk_search_form}