Files
crm.clientright.ru/test/templates_c/v7/618eec2037830d8e27aca5254ef741cccb46430f.file.WfTaskCreateevent.tpl.php
Fedor 75d3f7942b feat: Обновлены все URL Nextcloud с office.klientprav.tech на office.clientright.ru
Обновленные файлы:
- crm_extensions/nextcloud_api.php (2 места)
- modules/Documents/actions/NcPrepareEdit.php
- crm_extensions/nextcloud_editor/js/nextcloud-editor.js
- crm_extensions/file_storage/api/get_edit_urls.php
- crm_extensions/file_storage/api/simple_edit.php
- crm_extensions/README.md
- NEXTCLOUD_EDIT_BUTTON_IMPLEMENTATION.md
- crm_extensions/docs/NEXTCLOUD_EDITOR.md
- test_syntax_check.html
- crm_extensions/tests/test_edit_button.html

Все ссылки теперь указывают на новый сервер office.clientright.ru
Backup файлы и тестовые директории не изменены
2025-10-20 17:17:34 +03:00

235 lines
18 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-10-17 19:04:55
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskCreateevent.tpl" */ ?>
<?php /*%%SmartyHeaderCode:24002205868f26927f19cb8-95322914%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'618eec2037830d8e27aca5254ef741cccb46430f' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskCreateevent.tpl',
1 => 1711810494,
2 => 'file',
),
),
'nocache_hash' => '24002205868f26927f19cb8-95322914',
'function' =>
array (
),
'variables' =>
array (
'MOD' => 0,
'task' => 0,
'QUALIFIED_MODULE' => 0,
'FREQUENCY' => 0,
'setterContent' => 0,
'fields' => 0,
'label' => 0,
'block' => 0,
'field' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_68f2692806776',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68f2692806776')) {function content_68f2692806776($_smarty_tpl) {?>
<div>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="dvtCellLabel" width="25%" align="right"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_REDIRECT_AFTER_WORKFLOW'];?>
</td>
<td class="dvtCellInfo">&nbsp;&nbsp;<input type="checkbox" class="rcSwitch doInit" name="task[redirectAfter]" value="1" <?php if ($_smarty_tpl->tpl_vars['task']->value['redirectAfter']=="1"){?>checked='checked'<?php }?>></td>
</tr>
<tr>
<td class="dvtCellLabel" width="25%" align="right"><?php echo vtranslate('Recurring Event','Settings:Workflow2');?>
</td>
<td class="dvtCellInfo">&nbsp;&nbsp;<input type="checkbox" class="rcSwitch doInit" name="task[recurring]" value="1" <?php if ($_smarty_tpl->tpl_vars['task']->value['recurring']=="1"){?>checked='checked'<?php }?>></td>
</tr>
<tr class="ShowOnRecurringEvents">
<td class="dvtCellLabel" width="25%" align="right"></td>
<td class="dvtCellInfo">
<?php $_smarty_tpl->tpl_vars['QUALIFIED_MODULE'] = new Smarty_variable('Events', null, 0);?>
<div class="" id="repeatUI" style="box-sizing: border-box;<?php if ($_smarty_tpl->tpl_vars['task']->value['recurring']!='1'){?>display:none;<?php }?>">
<div style="display:flex;flex-direction: row;align-content:stretch;">
<div style="padding:0 5px;">
<span class="alignMiddle"><?php echo vtranslate('LBL_REPEATEVENT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span>
</div>
<div style="padding:0 5px;">
<select class="select2 input-mini" name="task[repeat][repeat_frequency]">
<?php $_smarty_tpl->tpl_vars['FREQUENCY'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['FREQUENCY']->step = 1;$_smarty_tpl->tpl_vars['FREQUENCY']->total = (int)ceil(($_smarty_tpl->tpl_vars['FREQUENCY']->step > 0 ? 14+1 - (1) : 1-(14)+1)/abs($_smarty_tpl->tpl_vars['FREQUENCY']->step));
if ($_smarty_tpl->tpl_vars['FREQUENCY']->total > 0){
for ($_smarty_tpl->tpl_vars['FREQUENCY']->value = 1, $_smarty_tpl->tpl_vars['FREQUENCY']->iteration = 1;$_smarty_tpl->tpl_vars['FREQUENCY']->iteration <= $_smarty_tpl->tpl_vars['FREQUENCY']->total;$_smarty_tpl->tpl_vars['FREQUENCY']->value += $_smarty_tpl->tpl_vars['FREQUENCY']->step, $_smarty_tpl->tpl_vars['FREQUENCY']->iteration++){
$_smarty_tpl->tpl_vars['FREQUENCY']->first = $_smarty_tpl->tpl_vars['FREQUENCY']->iteration == 1;$_smarty_tpl->tpl_vars['FREQUENCY']->last = $_smarty_tpl->tpl_vars['FREQUENCY']->iteration == $_smarty_tpl->tpl_vars['FREQUENCY']->total;?>
<option value="<?php echo $_smarty_tpl->tpl_vars['FREQUENCY']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeat_frequency']==$_smarty_tpl->tpl_vars['FREQUENCY']->value){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['FREQUENCY']->value;?>
</option>
<?php }} ?>
</select>
</div>
<div style="padding:0 5px;">
<select class="select2 input-medium" name="task[repeat][recurring_type]" id="recurringType">
<option value="Daily" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Daily'){?> selected <?php }?>><?php echo vtranslate('LBL_DAYS_TYPE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value="Weekly" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Weekly'){?> selected <?php }?>><?php echo vtranslate('LBL_WEEKS_TYPE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value="Monthly" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Monthly'){?> selected <?php }?>><?php echo vtranslate('LBL_MONTHS_TYPE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value="Yearly" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Yearly'){?> selected <?php }?>><?php echo vtranslate('LBL_YEAR_TYPE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
</select>
</div>
<div style="padding:0 5px;">
<span class="alignMiddle"><?php echo vtranslate('LBL_UNTIL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span>
</div>
<div style="flex-grow:1;">
<div class="insertDatefield" data-name="task[repeat][calendar_repeat_limit_date]" data-id="calendar_repeat_limit_date"><?php echo $_smarty_tpl->tpl_vars['task']->value['repeat']['calendar_repeat_limit_date'];?>
</div>
</div>
</div>
<div class="<?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Weekly'){?>show<?php }else{ ?>hide<?php }?>" id="repeatWeekUI">
<label class="checkbox inline"><input name="task[repeat][sun_flag]" value="sunday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['sun_flag']=="sunday"){?>checked<?php }?> type="checkbox"/><?php echo vtranslate('LBL_SM_SUN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][mon_flag]" value="monday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['mon_flag']=="monday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_MON',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][tue_flag]" value="tuesday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['tue_flag']=="tuesday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_TUE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][wed_flag]" value="wednesday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['wed_flag']=="wednesday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_WED',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][thu_flag]" value="thursday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['thu_flag']=="thursday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_THU',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][fri_flag]" value="friday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['fri_flag']=="friday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_FRI',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
<label class="checkbox inline"><input name="task[repeat][sat_flag]" value="saturday" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['sat_flag']=="saturday"){?>checked<?php }?> type="checkbox"><?php echo vtranslate('LBL_SM_SAT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label>
</div>
<div class="<?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['recurring_type']=='Monthly'){?>show<?php }else{ ?>hide<?php }?>" id="repeatMonthUI">
<div class="row-fluid" style="padding-left:100px;">
<div class="span"><input type="radio" id="repeatDate" name="task[repeat][repeatMonth]" checked value="date" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth']=='date'){?> checked <?php }?>/></div>
<div class="span"><span class="alignMiddle"><?php echo vtranslate('LBL_ON',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span></div>
<div class="span"><input type="text" id="repeatMonthDate" class="input-mini" name="task[repeat][repeatMonth_date]" data-validation-engine='validate[funcCall[Calendar_RepeatMonthDate_Validator_Js.invokeValidation]]' value="<?php echo $_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_date'];?>
"/></div>
<div class="span alignMiddle"><?php echo vtranslate('LBL_DAY_OF_THE_MONTH',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</div>
</div>
<div class="clearfix"></div>
<div class="row-fluid" id="repeatMonthDayUI" style="padding-left:100px;">
<div class="span"><input type="radio" id="repeatDay" name="task[repeat][repeatMonth]" value="day" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth']=='day'){?> checked <?php }?>/></div>
<div class="span"><span class="alignMiddle"><?php echo vtranslate('LBL_ON',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span></div>
<div class="span">
<select id="repeatMonthDayType" class="select2 input-small" name="task[repeat][repeatMonth_daytype]">
<option value="first" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_daytype']=='first'){?> selected <?php }?>><?php echo vtranslate('LBL_FIRST',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value="last" <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_daytype']=='last'){?> selected <?php }?>><?php echo vtranslate('LBL_LAST',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
</select>
</div>
<div class="span">
<select id="repeatMonthDay" class="select2 input-medium" name="task[repeat][repeatMonth_day]">
<option value=1 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==1){?> selected <?php }?>><?php echo vtranslate('LBL_DAY1',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value=2 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==2){?> selected <?php }?>><?php echo vtranslate('LBL_DAY2',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value=3 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==3){?> selected <?php }?>><?php echo vtranslate('LBL_DAY3',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value=4 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==4){?> selected <?php }?>><?php echo vtranslate('LBL_DAY4',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value=5 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==5){?> selected <?php }?>><?php echo vtranslate('LBL_DAY5',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
<option value=6 <?php if ($_smarty_tpl->tpl_vars['task']->value['repeat']['repeatMonth_day']==6){?> selected <?php }?>><?php echo vtranslate('LBL_DAY6',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option>
</select>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<hr/>
</div>
<?php echo $_smarty_tpl->tpl_vars['setterContent']->value;?>
<br/>
<h4><?php echo vtranslate('duplicate record check','Settings:Workflow2');?>
</h4>
<hr/>
<p>
<?php echo vtranslate('The task will check the configured fields, before creating a new record. If the task found already some records with equal fieldvalues, no new record will be created.','Settings:Workflow2');?>
</p>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="dvtCellLabel" width="25%" align="right"><?php echo vtranslate('choose fields to check','Settings:Workflow2');?>
</td>
<td class="dvtCellInfo" align="left" style="padding:5px;">
<select name="task[uniquecheck][]" class="select2" multiple="multiple" style="width:100%;">
<?php $_smarty_tpl->tpl_vars['block'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['block']->_loop = false;
$_smarty_tpl->tpl_vars['label'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['block']->key => $_smarty_tpl->tpl_vars['block']->value){
$_smarty_tpl->tpl_vars['block']->_loop = true;
$_smarty_tpl->tpl_vars['label']->value = $_smarty_tpl->tpl_vars['block']->key;
?>
<optgroup label="<?php echo $_smarty_tpl->tpl_vars['label']->value;?>
">
<?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['block']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['field']->value->name!="smownerid"){?>
<option value='<?php echo $_smarty_tpl->tpl_vars['field']->value->name;?>
'' <?php if (in_array($_smarty_tpl->tpl_vars['field']->value->name,$_smarty_tpl->tpl_vars['task']->value['uniquecheck'])){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['field']->value->label;?>
</option>
<?php }else{ ?>
<option value='assigned_user_id'><?php echo $_smarty_tpl->tpl_vars['field']->value->label;?>
</option>
<?php }?>
<?php } ?>
</optgroup>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td class="dvtCellLabel" width="25%" align="right"><?php echo vtranslate('update these fields if duplicate found','Settings:Workflow2');?>
</td>
<td class="dvtCellInfo" align="left" style="padding:5px;">
<select name="task[updateexisting][]" class="select2" multiple="multiple" style="width:100%;">
<option value="all-configured"><?php echo vtranslate('all configured fields','Settings:Workflow2');?>
</option>
<?php $_smarty_tpl->tpl_vars['block'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['block']->_loop = false;
$_smarty_tpl->tpl_vars['label'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['block']->key => $_smarty_tpl->tpl_vars['block']->value){
$_smarty_tpl->tpl_vars['block']->_loop = true;
$_smarty_tpl->tpl_vars['label']->value = $_smarty_tpl->tpl_vars['block']->key;
?>
<optgroup label="<?php echo $_smarty_tpl->tpl_vars['label']->value;?>
">
<?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['block']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['field']->value->name!="smownerid"){?>
<option value='<?php echo $_smarty_tpl->tpl_vars['field']->value->name;?>
' <?php if (in_array($_smarty_tpl->tpl_vars['field']->value->name,$_smarty_tpl->tpl_vars['task']->value['updateexisting'])){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['field']->value->label;?>
</option>
<?php }else{ ?>
<option value='assigned_user_id'><?php echo $_smarty_tpl->tpl_vars['field']->value->label;?>
</option>
<?php }?>
<?php } ?>
</optgroup>
<?php } ?>
</select>
</td>
</tr>
</table>
<?php }} ?>