Frontend: - Динамическая загрузка 226 банков из NSPK API - Выбор банка добавлен в Step3Payment (новая заявка) - Выбор банка добавлен в generateConfirmationFormHTML (редактирование) - Поля: bank_id (ID из NSPK) и bank_name (название для отображения) Backend: - Добавлено поле bank_id в ClaimCreateRequest API: - http://212.193.27.93/api/payouts/dictionaries/nspk-banks Изменения: - ticket_form/frontend/src/components/form/Step3Payment.tsx - ticket_form/frontend/src/components/form/generateConfirmationFormHTML.ts - ticket_form/frontend/src/pages/ClaimForm.tsx - ticket_form/backend/app/api/models.py
112 lines
6.8 KiB
PHP
112 lines
6.8 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-12-01 14:36:18
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/ITS4YouInstaller/rows/Package.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:741769699692d7db2c21cf7-65812815%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'7bcabbb756995e6b115346c946cf88844ea3fcfd' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/ITS4YouInstaller/rows/Package.tpl',
|
|
1 => 1715158481,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '741769699692d7db2c21cf7-65812815',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'EXTENSION' => 0,
|
|
'MODULE_MODEL' => 0,
|
|
'MODULE_NAME' => 0,
|
|
'QUALIFIED_MODULE' => 0,
|
|
'IS_AUTH' => 0,
|
|
'SETTINGS_LINKS' => 0,
|
|
'SETTINGS_LINK' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_692d7db2c32f6',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_692d7db2c32f6')) {function content_692d7db2c32f6($_smarty_tpl) {?>
|
|
<?php $_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('moduleModel'), null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['EXTENSION']->value->get('name'), null, 0);?>
|
|
<tr>
|
|
<td>
|
|
<a <?php if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value&&$_smarty_tpl->tpl_vars['MODULE_MODEL']->value->isActive()){?>href="<?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getDefaultUrl();?>
|
|
" target="_blank" <?php }else{ ?> href="#<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
|
|
" <?php }?>><?php echo vtranslate($_smarty_tpl->tpl_vars['EXTENSION']->value->get('label'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
</a>
|
|
</td>
|
|
<td class="validateVersion"><?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->getVersion();?>
|
|
</td>
|
|
<td class="updateTime" title="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->getUpdateTimeRaw();?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->getUpdateTime();?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('pkgVersion');?>
|
|
</td>
|
|
<td>
|
|
<span class="extension_container">
|
|
<?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->isVtigerCompatible()){?>
|
|
<input type="hidden" name="extensionName" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('name');?>
|
|
"/>
|
|
<input type="hidden" name="extensionUrl" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('downloadURL');?>
|
|
"/>
|
|
<input type="hidden" name="extensionId" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('id');?>
|
|
"/>
|
|
<input type="hidden" name="extensionType" value="Package"/>
|
|
<input type="hidden" name="moduleMode" value="showChangelog"/>
|
|
<?php if (!$_smarty_tpl->tpl_vars['EXTENSION']->value->isAlreadyExists()){?>
|
|
<input type="hidden" name="moduleAction" value="Install"/>
|
|
<button class="showChangeLog btn btn-primary <?php if ($_smarty_tpl->tpl_vars['IS_AUTH']->value){?>authenticated <?php }else{ ?> loginRequired<?php }?>">
|
|
<?php echo vtranslate('LBL_INSTALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
|
|
</button>
|
|
<?php }elseif($_smarty_tpl->tpl_vars['EXTENSION']->value->isUpgradableMulti()){?>
|
|
<input type="hidden" name="moduleAction" value="Upgrade"/>
|
|
<input type="hidden" name="moduleMessage" value="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->getUpdateMessage();?>
|
|
"/>
|
|
<button class="showChangeLog isUpdateBtn btn btn-success margin0px <?php if ($_smarty_tpl->tpl_vars['IS_AUTH']->value){?>authenticated <?php }else{ ?> loginRequired<?php }?>">
|
|
<?php echo vtranslate('LBL_UPDATE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
|
|
</button>
|
|
<?php }?>
|
|
<?php }?>
|
|
</span>
|
|
<?php if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value){?>
|
|
<?php $_smarty_tpl->tpl_vars['SETTINGS_LINKS'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getSettingLinks(), null, 0);?>
|
|
<?php if ((count($_smarty_tpl->tpl_vars['SETTINGS_LINKS']->value)>0)){?>
|
|
<span class="btn-group pull-right <?php if (!$_smarty_tpl->tpl_vars['MODULE_MODEL']->value->isActive()){?>hide<?php }?>">
|
|
<button class="btn btn-default btn dropdown-toggle unpin hiden " data-toggle="dropdown">
|
|
<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
<i class="caret"></i>
|
|
</button>
|
|
<ul class="dropdown-menu pull-right dropdownfields">
|
|
<?php $_smarty_tpl->tpl_vars['SETTINGS_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['SETTINGS_LINK']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['SETTINGS_LINKS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['SETTINGS_LINK']->key => $_smarty_tpl->tpl_vars['SETTINGS_LINK']->value){
|
|
$_smarty_tpl->tpl_vars['SETTINGS_LINK']->_loop = true;
|
|
?>
|
|
<li>
|
|
<a target="_blank" <?php if (stripos($_smarty_tpl->tpl_vars['SETTINGS_LINK']->value['linkurl'],'javascript:')===0){?>onclick='<?php echo substr($_smarty_tpl->tpl_vars['SETTINGS_LINK']->value['linkurl'],strlen("javascript:"));?>
|
|
'<?php }else{ ?>href='<?php echo $_smarty_tpl->tpl_vars['SETTINGS_LINK']->value['linkurl'];?>
|
|
'<?php }?>>
|
|
<?php echo vtranslate($_smarty_tpl->tpl_vars['SETTINGS_LINK']->value['linklabel'],$_smarty_tpl->tpl_vars['MODULE_NAME']->value,vtranslate("SINGLE_".($_smarty_tpl->tpl_vars['MODULE_NAME']->value),$_smarty_tpl->tpl_vars['MODULE_NAME']->value));?>
|
|
|
|
</a>
|
|
</li>
|
|
<?php } ?>
|
|
</ul>
|
|
</span>
|
|
<?php }?>
|
|
<?php }?>
|
|
<span class="pull-right">
|
|
<?php if ($_smarty_tpl->tpl_vars['EXTENSION']->value->get('website')!=''){?>
|
|
<button class="btn installExtension addButton" style="margin-right:5px;" data-url="<?php echo $_smarty_tpl->tpl_vars['EXTENSION']->value->get('website');?>
|
|
"><?php echo vtranslate('LBL_MORE_DETAILS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
</button>
|
|
<?php }?>
|
|
</span>
|
|
</td>
|
|
</tr><?php }} ?>
|