Files
crm.clientright.ru/test/templates_c/v7/dd7bf17ec9a9615841e7c3eb4beccbadf61c69ee.file.WfTaskMessage.tpl.php
Fedor ac7467f0b4 Major CRM updates: AI Assistant, Court Status API, S3 integration improvements, and extensive file storage system
- Added comprehensive AI Assistant system (aiassist/ directory):
  * Vector search and embedding capabilities
  * Typebot proxy integration
  * Elastic search functionality
  * Message classification and chat history
  * MCP proxy for external integrations

- Implemented Court Status API (GetCourtStatus.php):
  * Real-time court document status checking
  * Integration with external court systems
  * Comprehensive error handling and logging

- Enhanced S3 integration:
  * Improved file backup system with metadata
  * Batch processing capabilities
  * Enhanced error logging and recovery
  * Copy operations with URL fixing

- Added Telegram contact creation API
- Improved error logging across all modules
- Enhanced callback system for AI responses
- Extensive backup file storage with timestamps
- Updated documentation and README files

- File storage improvements:
  * Thousands of backup files with proper metadata
  * Fix operations for broken file references
  * Project-specific backup and recovery systems
  * Comprehensive file integrity checking

Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
2025-10-16 11:17:21 +03:00

176 lines
11 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-09-29 17:26:47
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskMessage.tpl" */ ?>
<?php /*%%SmartyHeaderCode:123241987068da9727e023c8-32687629%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'dd7bf17ec9a9615841e7c3eb4beccbadf61c69ee' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskMessage.tpl',
1 => 1711810494,
2 => 'file',
),
),
'nocache_hash' => '123241987068da9727e023c8-32687629',
'function' =>
array (
),
'variables' =>
array (
'isFrontendWorkflow' => 0,
'MOD' => 0,
'task' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_68da9727e52ae',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68da9727e52ae')) {function content_68da9727e52ae($_smarty_tpl) {?><div>
<?php if ($_smarty_tpl->tpl_vars['isFrontendWorkflow']->value==true){?>
<p class="alert alert-warning"><?php echo vtranslate('Please be sure to use the correct Task. There is another Block "Show Message" special for Frontend Workflows.<br/>This Task do <strong>NOT</strong> show messages during EditView.','Settings:Workflow2');?>
</p>
<?php }?>
<table width="100%" cellspacing="0" cellpadding="0" class="newTable">
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_TYPE'];?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<select name="task[type]" class="select2" style="width:150px;">
<option value="info" <?php if ($_smarty_tpl->tpl_vars['task']->value['type']=='info'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_TYPE_INFO'];?>
</option>
<option value="success" <?php if ($_smarty_tpl->tpl_vars['task']->value['type']=='success'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_TYPE_SUCCESS'];?>
</option>
<option value="error" <?php if ($_smarty_tpl->tpl_vars['task']->value['type']=='error'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_TYPE_ERROR'];?>
</option>
</select>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('LBL_MESSAGE_TITLE','Workflow2');?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<div class="insertTextfield" data-name="task[subject]" data-id="subject"><?php echo $_smarty_tpl->tpl_vars['task']->value['subject'];?>
</div>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('LBL_MESSAGE','Workflow2');?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<div class="insertTextfield" data-name="task[message]" data-id="message"><?php echo $_smarty_tpl->tpl_vars['task']->value['message'];?>
</div>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('LBL_MESSAGE_SHOW_ONCE','Workflow2');?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<input type="checkbox" name="task[show_once]" value="1" <?php if ($_smarty_tpl->tpl_vars['task']->value['show_once']=="1"){?>checked='checked'<?php }?>>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('LBL_MESSAGE_SHOW_UNTIL','Workflow2');?>
<br/>(YYYY-MM-DD HH:MM)</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<div class="insertTextfield" data-name="task[show_until]" data-id="show_until"><?php echo $_smarty_tpl->tpl_vars['task']->value['show_until'];?>
</div>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_POSITION'];?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<select name="task[position]" class="select2" style="width:150px;">
<option value="top" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='top'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_TOP'];?>
</option>
<option value="topLeft" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='topLeft'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_TOP'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_LEFT'];?>
</option>
<option value="topCenter" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='topCenter'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_TOP'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_CENTER'];?>
</option>
<option value="topRight" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='topRight'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_TOP'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_RIGHT'];?>
</option>
<option value="centerLeft" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='centerLeft'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_CENTER'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_LEFT'];?>
</option>
<option value="center" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='center'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_CENTER'];?>
</option>
<option value="centerRight" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='centerRight'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_CENTER'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_RIGHT'];?>
</option>
<option value="bottomLeft" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='bottomLeft'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_BOTTOM'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_LEFT'];?>
</option>
<option value="bottomCenter" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='bottom'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_BOTTOM'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_CENTER'];?>
</option>
<option value="bottomRight" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='bottomRight'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_BOTTOM'];?>
<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_RIGHT'];?>
</option>
<option value="bottom" <?php if ($_smarty_tpl->tpl_vars['task']->value['position']=='bottom'){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_POS_BOTTOM'];?>
</option>
</select>
</td>
</tr>
<tr>
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Assign message to record or user','Settings:Workflow2');?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<select name="task[target]" onchange="jQuery('#targetUserChooser').css('visibility', this.value == 'user' ? 'visible' : 'hidden');jQuery('#targetRecordChooser').css('visibility', this.value == 'record' ? 'visible' : 'hidden');" class="select2" style="width:150px;">
<option value="record" <?php if (empty($_smarty_tpl->tpl_vars['task']->value['target'])||$_smarty_tpl->tpl_vars['task']->value['target']=='record'){?>selected='selected'<?php }?>><?php echo vtranslate('Record','Settings:Workflow2');?>
</option>
<option value="user" <?php if ($_smarty_tpl->tpl_vars['task']->value['target']=='user'){?>selected='selected'<?php }?>><?php echo vtranslate('User','Settings:Workflow2');?>
</option>
</select>
</td>
</tr>
<tr id="targetUserChooser" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['target']!='user'){?>visibility: hidden;<?php }?>">
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Assign message to this user','Settings:Workflow2');?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<select name="task[targetUser]" class="select2" style="width:150px;">
<option value="current_user_id" <?php if (empty($_smarty_tpl->tpl_vars['task']->value['targetUser'])||$_smarty_tpl->tpl_vars['task']->value['targetUser']=='current_user'){?>selected='selected'<?php }?>><?php echo vtranslate('LBL_CURRENT_USER','Settings:Workflow2');?>
</option>
<option value="assigned_user_id" <?php if ($_smarty_tpl->tpl_vars['task']->value['targetUser']=='assigned'||$_smarty_tpl->tpl_vars['task']->value['targetUser']=='assigned_user_id'){?>selected='selected'<?php }?>><?php echo vtranslate('assigned to User','Settings:Workflow2');?>
</option>
<option value="modifiedby" <?php if ($_smarty_tpl->tpl_vars['task']->value['targetUser']=='modified'||$_smarty_tpl->tpl_vars['task']->value['targetUser']=='modifiedby'){?>selected='selected'<?php }?>><?php echo vtranslate('modified by User','Settings:Workflow2');?>
</option>
</select>
</td>
</tr>
<tr>
<td class="dvtCellInfo" align="right" width="25%">&nbsp;</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
&nbsp;
</td>
</tr>
<tr id="targetRecordChooser" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['target']!='record'){?>visibility: hidden;<?php }?>">
<td class="dvtCellLabel" align="right" width="25%"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_MESSAGE_TARGET'];?>
</td>
<td width="15"></td>
<td class="dvtCellInfo" align="left">
<div class="insertTextfield" data-name="task[targetId]" data-id="targetId"><?php echo $_smarty_tpl->tpl_vars['task']->value['targetId'];?>
</div>
</td>
</tr>
</table>
</div><?php }} ?>