1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00
ifhub.club/application/frontend/components/user/settings/tuning.tpl
2015-10-27 16:02:57 +07:00

75 lines
3 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Настройка уведомлений
*}
{* @hook Начало формы с настройками уведомлений *}
{hook run='user_settings_tuning_begin'}
<form action="{router page='settings'}tuning/" method="POST" enctype="multipart/form-data">
{hook run='form_settings_tuning_begin'}
{component 'field' template='hidden.security-key'}
<fieldset>
<legend>{lang name='user.settings.tuning.email_notices'}</legend>
<div class="ls-field-checkbox-group">
{component 'field' template='checkbox'
name = 'settings_notice_new_topic'
checked = $oUserCurrent->getSettingsNoticeNewTopic() != 0
noMargin = true
label = {lang name='user.settings.tuning.fields.new_topic'}}
{component 'field' template='checkbox'
name = 'settings_notice_new_comment'
checked = $oUserCurrent->getSettingsNoticeNewComment() != 0
noMargin = true
label = {lang name='user.settings.tuning.fields.new_comment'}}
{component 'field' template='checkbox'
name = 'settings_notice_new_talk'
checked = $oUserCurrent->getSettingsNoticeNewTalk() != 0
noMargin = true
label = {lang name='user.settings.tuning.fields.new_talk'}}
{component 'field' template='checkbox'
name = 'settings_notice_reply_comment'
checked = $oUserCurrent->getSettingsNoticeReplyComment() != 0
noMargin = true
label = {lang name='user.settings.tuning.fields.reply_comment'}}
{component 'field' template='checkbox'
name = 'settings_notice_new_friend'
checked = $oUserCurrent->getSettingsNoticeNewFriend() != 0
noMargin = true
label = {lang name='user.settings.tuning.fields.new_friend'}}
</div>
</fieldset>
<fieldset>
<legend>{lang name='user.settings.tuning.general'}</legend>
{foreach $aTimezoneList as $timezone}
{$timezoneLang=$aLang.date.timezones[ $timezone ]}
{if $timezoneLang}
{$timezones[] = [
'value' => $timezone,
'text' => $timezoneLang
]}
{/if}
{/foreach}
{component 'field' template='select'
name = 'settings_general_timezone'
label = {lang name='user.settings.tuning.fields.timezone.label'}
items = $timezones
selectedValue = $_aRequest.settings_general_timezone}
</fieldset>
{* @hook Конец формы с настройками уведомлений *}
{hook run='user_settings_tuning_end'}
{component 'button' text=$aLang.common.save mods='primary'}
</form>
{hook run='settings_tuning_end'}