mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
44 lines
1.3 KiB
Smarty
44 lines
1.3 KiB
Smarty
{**
|
|
* Жалоба на пользователя
|
|
*
|
|
* @param array $types
|
|
*}
|
|
|
|
{component_define_params params=[ 'types' ]}
|
|
|
|
{capture 'modal_content'}
|
|
<form action="" method="post" id="form-complaint-user">
|
|
{component 'field' template='hidden' name='target_id' value=$_aRequest.target_id}
|
|
|
|
{component 'field' template='select'
|
|
name = 'type'
|
|
label = {lang 'report.form.fields.type.label'}
|
|
classes = 'ls-width-full'
|
|
items = $types}
|
|
|
|
{component 'field' template='textarea'
|
|
name = 'text'
|
|
rows = 5
|
|
label = {lang 'report.form.fields.text.label'}
|
|
classes = 'ls-width-full'}
|
|
|
|
{* Каптча *}
|
|
{if Config::Get('module.user.complaint_captcha')}
|
|
{component 'field' template='captcha'
|
|
captchaType = Config::Get('sys.captcha.type')
|
|
captchaName ='complaint_user'
|
|
name ='captcha'}
|
|
{/if}
|
|
</form>
|
|
{/capture}
|
|
|
|
{component 'modal'
|
|
title = {lang 'report.form.title'}
|
|
content = $smarty.capture.modal_content
|
|
classes = 'js-modal-default'
|
|
mods = 'report'
|
|
id = 'modal-complaint-user'
|
|
primaryButton = [
|
|
'text' => {lang 'report.form.submit'},
|
|
'form' => 'form-complaint-user'
|
|
]} |