Files
crm.clientright.ru/test/templates_c/v7/677ad9e73c2ee4a58e253d74cb872caf7ce0b288.file.License.tpl.php
Fedor ee1c4af5c3 feat: добавлен выбор банка для СБП выплат
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
2025-12-02 11:06:15 +03:00

109 lines
6.2 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/License.tpl" */ ?>
<?php /*%%SmartyHeaderCode:486525976692d7db2bfdfd0-37690819%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'677ad9e73c2ee4a58e253d74cb872caf7ce0b288' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/ITS4YouInstaller/rows/License.tpl',
1 => 1715158481,
2 => 'file',
),
),
'nocache_hash' => '486525976692d7db2bfdfd0-37690819',
'function' =>
array (
),
'variables' =>
array (
'LICENSE' => 0,
'LICENSE_KEY' => 0,
'QUALIFIED_MODULE' => 0,
'EXTENSION_MODEL' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_692d7db2c1102',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_692d7db2c1102')) {function content_692d7db2c1102($_smarty_tpl) {?>
<tr class="<?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getParentClass();?>
">
<td style="border-left:none;border-right:none;">
<a class="licenseColors" href="#<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->get('service_usageunit')!='Package'){?><?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->get('cf_identifier');?>
<?php }?>">
<?php echo $_smarty_tpl->tpl_vars['LICENSE_KEY']->value;?>
</a>
</td>
<td style="border-left:none;border-right:none;">
<?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->get('servicename');?>
</td>
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isHostingLicense()){?>
<td colspan="3" style="border-left:none;">
<?php echo vtranslate('LBL_HOSTING_LICENSE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</td>
<?php }else{ ?>
<td style="border-left:none;border-right:none;">
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->get('due_date')!=''){?>
<?php echo Vtiger_Util_Helper::formatDateIntoStrings($_smarty_tpl->tpl_vars['LICENSE']->value->get('due_date'));?>
<?php }?>
</td>
<td style="border-left:none;border-right:none;">
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->hasParentLicense()){?>
<?php echo vtranslate('LBL_SUBLICENSE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }elseif($_smarty_tpl->tpl_vars['LICENSE']->value->get('subscription')=="1"){?>
<?php echo vtranslate('LBL_SUBSCRIPTION',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }elseif($_smarty_tpl->tpl_vars['LICENSE']->value->get('demo_free')=="1"){?>
<?php echo vtranslate('LBL_DEMO_FREE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }else{ ?>
<?php echo vtranslate('LBL_FULL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }?>
</td>
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->hasParentLicense()){?>
<td style="border-left:none;border-right:none;"></td>
<?php }else{ ?>
<td style="border-left:none;border-right:none;">
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isRenewReady()&&$_smarty_tpl->tpl_vars['EXTENSION_MODEL']->value->isAllowedBuyLicense()){?>
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->get('subscription')=="1"){?>
<a class="btn btn-info" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getRenewUrl();?>
"><?php echo vtranslate('LBL_PROLONG_LICENSE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a>
<?php }elseif($_smarty_tpl->tpl_vars['LICENSE']->value->get('demo_free')==true){?>
<a class="btn btn-success" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getConvertUrl();?>
"><?php echo vtranslate('LBL_BUY_LICENSE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a>
<?php }else{ ?>
<a class="btn btn-primary" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getRenewUrl();?>
"><?php echo vtranslate('LBL_RENEW_LICENSE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a>
<?php }?>
&nbsp;&nbsp;
<?php }?>
<button class="btn btn-danger actionLicenses" type="button" data-mode="deactivate" data-license="<?php echo $_smarty_tpl->tpl_vars['LICENSE_KEY']->value;?>
"><?php echo vtranslate('LBL_DEACTIVATE_LICENSES',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button>
<div class="pull-right">
<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isExpired()){?>
<div class="alert alert-danger displayInlineBlock" style="margin:0;"><?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isTrial()){?><?php echo vtranslate('LBL_TRIAL_INACTIVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }else{ ?><?php echo vtranslate('LBL_MEMBERSHIP_INACTIVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }?><?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getExpireString();?>
</div>
<?php }else{ ?>
<div class="alert alert-<?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isRenewReady()){?>warning<?php }else{ ?>info<?php }?> displayInlineBlock" style="margin:0;"><?php if ($_smarty_tpl->tpl_vars['LICENSE']->value->isTrial()){?><?php echo vtranslate('LBL_TRIAL_ACTIVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }else{ ?><?php echo vtranslate('LBL_MEMBERSHIP_ACTIVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php }?><?php echo $_smarty_tpl->tpl_vars['LICENSE']->value->getExpireString();?>
</div>
<?php }?>
</div>
</td>
<?php }?>
<?php }?>
</tr><?php }} ?>