1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/skin/developer/modals/modal.complaint_user.tpl
2014-10-18 13:07:45 +07:00

47 lines
1.4 KiB
Smarty

{**
* Жалоба на пользователя
*
* @styles css/modals.css
*}
{extends 'components/modal/modal.tpl'}
{block 'modal_id'}modal-complaint-user{/block}
{block 'modal_class'}modal-complaint-user js-modal-default{/block}
{block 'modal_title'}{lang name='report.form.title'}{/block}
{block 'modal_content'}
<form action="" method="post" onsubmit="return false;" id="form-complaint-user">
{foreach Config::Get('module.user.complaint_type') as $type}
{$aTypes[] = [
'value' => $type,
'text' => $aLang.report.type_list.{$type}
]}
{/foreach}
{include 'components/field/field.select.tpl'
name = 'type'
label = {lang name='report.form.fields.type.label'}
classes = 'width-full'
items = $aTypes }
{include 'components/field/field.textarea.tpl'
name = 'text'
rows = 5
label = {lang name='report.form.fields.text.label'}
classes = 'width-full'}
{* Каптча *}
{if Config::Get('module.user.complaint_captcha')}
{include 'components/field/field.captcha.tpl'
captchaName = 'complaint_user'
name = 'captcha'}
{/if}
{include 'components/field/field.hidden.tpl' name='user_id' value=$_aRequest.user_id}
</form>
{/block}
{block 'modal_footer_begin'}
<button type="submit" class="button button--primary" onclick="ls.user.addComplaint('#form-complaint-user');">{lang 'report.form.submit'}</button>
{/block}