Files
crm.clientright.ru/test/templates_c/v7/0d6898570ac3df2cefd98ea73decd5a4383e35c5.file.Reminder.tpl.php
Fedor 7e3f0dcede Исправление путей к папкам проектов в Nextcloud + создание файлов из CRM
🔧 Исправления:
- Исправлены пути к папкам проектов: теперь /Documents/Project/{Name}_{Id}
- Исправлена функция openProjectFolder() во всех JS файлах
- Добавлены кнопки создания Word/Excel/PowerPoint из CRM (10 модулей)
- Создание файлов напрямую в S3 с автоиндексацией через Redis
- Исправлена ошибка 'Class Redis not found' (использован Predis)

📁 Изменённые файлы:
- layouts/v7/lib/nextcloud-editor.js
- crm_extensions/nextcloud_editor/js/nextcloud-editor.js
- layouts/v7/lib/nextcloud-editor-v3.js
- crm_extensions/file_storage/api/create_nextcloud_file.php
- layouts/v7/modules/*/DetailViewHeaderTitle.tpl (10 модулей)
- layouts/v7/modules/Documents/*.tpl (кнопки редактирования)

🎯 Результат:
- Кнопка 'Папка в Nextcloud' открывает правильную папку
- Создание файлов работает молниеносно (прямо в S3)
- Redis события публикуются корректно
- OnlyOffice открывается для редактирования

Проект 391552 теперь открывается по правильному пути!
2025-11-01 12:22:12 +03:00

30 lines
3.4 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-01 12:18:46
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/ITS4YouQuickReminder/Reminder.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12351364056905d0767b6258-06619933%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0d6898570ac3df2cefd98ea73decd5a4383e35c5' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/ITS4YouQuickReminder/Reminder.tpl',
1 => 1711810495,
2 => 'file',
),
),
'nocache_hash' => '12351364056905d0767b6258-06619933',
'function' =>
array (
),
'variables' =>
array (
'MODULE' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_6905d0767bbe9',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6905d0767bbe9')) {function content_6905d0767bbe9($_smarty_tpl) {?>
<li class="its4you_quickreminder_menu" style="display: block;"><div class="dropdown pull-left"><div class="dropdown-toggle displayInlineBlock" data-toggle="dropdown" aria-expanded="true"><a href="#" id="menubar_its4you_quickreminder" class="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_menu_icon fa fa-bell" title="Quick Reminder" aria-hidden="true"><span class="ITS4YouQuickReminderBadge animated bounce numberCircle" style="position: absolute; right: 0; bottom: 5px; display: none; border-radius: 10px;font: bold 10px Arial; padding: 3px 5px;"></span></a></div><ul class="dropdown-menu its4you_quickreminder_dropdown"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ReminderList.tpl","ITS4YouQuickReminder"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</ul></div><style>.<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_menu_icon {height: 37px;vertical-align: top;display: inline-block;line-height: 15px;}.its4you_quickreminder_dropdown {min-width: 320px;width: 500px;max-width: 500px;}#its4you_quickreminder_title {display: block;position: relative;line-height: 50px;vertical-align: top;height: 50px;margin: 4px 10px;background: #EFEFEF;}.its4you_reminder_text {line-height: 48px;display: inline-block;padding: 0 15px;font-size: 15px;margin: 0 0 0 50px;}.its4you_reminder_icon {text-shadow: 0 0 3px rgba(0,0,0,0.3);background: #EF5E29;color: #fff;text-align: center;vertical-align: middle;display: inline-block;line-height: 50px;width: 50px;height: 50px;position: absolute;}.its4you_reminder_icon.bg{line-height: 60px;}#its4you_quickreminder_title .its4you_quickreminder_action{margin: 10px;position: absolute;right: 0;}#its4you_quickreminder_settings {margin: 6px 10px;width: 30%;}#its4you_quickreminder_settings a.select2-choice {padding: 0;}.its4you_quickreminder_record {position: relative;}.its4you_quickreminder_record .actions{position: absolute;top: 15px;right: 15px;background: #fff;text-align: right;}.its4you_quickreminder_record .actions div{margin: 0 0 10px 0;}.its4you_quickreminder_record a.linktomodule {display: block;min-height: 50px;}.its4you_reminder_icon.list i.fa {display: inline-block;font-size: 30px;margin: 10px;}.its4you_reminder_subject {width: 80%;max-width: 350px;min-height: 50px;padding: 0 0 0 15px;margin: 0 0 0 50px;}.rem_status {display: inline-block;border-radius: 5px;background: #000;color: #fff;padding: 1px 3px;}</style></li><?php }} ?>