Files
crm.clientright.ru/test/templates_c/v7/62bc72479f4dbc06469c50f9793b05a9aab67965.file.FrontendManager.tpl.php

318 lines
21 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-18 17:44:45
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/VT7/FrontendManager.tpl" */ ?>
<?php /*%%SmartyHeaderCode:577213405691c865dc62627-85790648%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'62bc72479f4dbc06469c50f9793b05a9aab67965' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/VT7/FrontendManager.tpl',
1 => 1711810493,
2 => 'file',
),
),
'nocache_hash' => '577213405691c865dc62627-85790648',
'function' =>
array (
),
'variables' =>
array (
'workflows' => 0,
'moduleName' => 0,
'workflowList' => 0,
'workflow' => 0,
'links' => 0,
'linkArray' => 0,
'link' => 0,
'FrontendTypes' => 0,
'Type' => 0,
'FieldData' => 0,
'Field' => 0,
'FA_ICONS' => 0,
'ICON' => 0,
'frontendConfig' => 0,
'configurations' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_691c865dcc9c3',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_691c865dcc9c3')) {function content_691c865dcc9c3($_smarty_tpl) {?><div class="container-fluid" id="moduleManagerContents">
<div class="editViewHeader">
<h4>
<div class="pull-right">
<select class="select2" id="addWorkflow" style="width:400px;" data-placeholder="<?php echo vtranslate('choose a Workflow','Settings:Workflow2');?>
">
<option value=""></option>
<?php $_smarty_tpl->tpl_vars['workflowList'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['workflowList']->_loop = false;
$_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['workflows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['workflowList']->key => $_smarty_tpl->tpl_vars['workflowList']->value){
$_smarty_tpl->tpl_vars['workflowList']->_loop = true;
$_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['workflowList']->key;
?>
<optgroup label="<?php echo $_smarty_tpl->tpl_vars['moduleName']->value;?>
">
<?php $_smarty_tpl->tpl_vars['workflow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['workflow']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['workflowList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['workflow']->key => $_smarty_tpl->tpl_vars['workflow']->value){
$_smarty_tpl->tpl_vars['workflow']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['workflow']->value['title'];?>
</option>
<?php } ?>
</optgroup>
<?php } ?>
</select>
<button type="submit" id="addWorkflowButton" class="btn btn-primary" style="margin-top:0;vertical-align:top;"><?php echo vtranslate('add Workflow','Settings:Workflow2');?>
</button>
</div>
<a href="index.php?module=Workflow2&view=Index&parent=Settings"><?php echo vtranslate('Workflow Designer','Workflow2');?>
</a> &raquo;
<?php echo vtranslate('Frontend Manager','Settings:Workflow2');?>
</h4>
</div>
<div class="detailViewContainer ">
<?php $_smarty_tpl->tpl_vars['linkArray'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['linkArray']->_loop = false;
$_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['linkArray']->key => $_smarty_tpl->tpl_vars['linkArray']->value){
$_smarty_tpl->tpl_vars['linkArray']->_loop = true;
$_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['linkArray']->key;
?>
<div class="block" data-target="<?php echo $_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name'];?>
">
<h5 class="modHead">
<img src="modules/Workflow2/icons/toggle_minus.png" class="toggleImageCollapse toggleImage" style="display: none;" />
<img src="modules/Workflow2/icons/toggle_plus.png" class="toggleImageExpand toggleImage"/>
<strong><?php echo $_smarty_tpl->tpl_vars['moduleName']->value;?>
(<?php echo count($_smarty_tpl->tpl_vars['linkArray']->value);?>
)</strong>
</h5>
</div>
<table class="table frontendManagerTable" cellspacing="0" cellpadding="4" style="border-collapse:collapse;display:none;" data-module="<?php echo $_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name'];?>
" id="workflowList<?php echo $_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name'];?>
" >
<thead>
<tr style="background-color: #eee;">
<th align="left"></th>
<th align="left" style="width:250px;"><?php echo vtranslate('Workflow','Settings:Workflow2');?>
</th>
<th align="left" style="width:250px;"><?php echo vtranslate('Label','Settings:Workflow2');?>
</th>
<th align="left" style="width:250px;"><?php echo vtranslate('Include Type','Settings:Workflow2');?>
</th>
<th align="left">Configuration</th>
<!--<th align="left"><?php echo vtranslate('visible in Listview','Settings:Workflow2');?>
</th>
<th align="left"><?php echo vtranslate('Button Color','Settings:Workflow2');?>
</th>-->
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['link'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['link']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['linkArray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['link']->key => $_smarty_tpl->tpl_vars['link']->value){
$_smarty_tpl->tpl_vars['link']->_loop = true;
?>
<tr class="hoverTR" data-index="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
">
<td>
<img src="modules/Workflow2/icons/delete.png" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" class="removeFrontendManagerOnClick" width="16" />
</td>
<td>
<?php if ($_smarty_tpl->tpl_vars['link']->value['color']!='separator'){?>
<?php echo $_smarty_tpl->tpl_vars['link']->value['title'];?>
<?php }else{ ?>
-- <?php echo vtranslate('Separator','Settings:Workflow2');?>
--
<?php }?>
</td>
<td><input type="text" class="defaultTextfield saveOnBlur" data-field="label" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['link']->value['label'];?>
" style="margin-bottom:0;width:100%;" /></td>
<td>
<select data-field="position" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" class="saveOnBlur select2 FrontendType" style="width:100%;">
<option value="none" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='none'){?>selected="selected"<?php }?>>hidden</option>
<optgroup label="<?php echo vtranslate('Workflow Designer',"Settings:Workflow2");?>
">
<option value="sidebar" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='sidebar'){?>selected="selected"<?php }?>><?php echo vtranslate('Dedicated Button in popup','Settings:Workflow2');?>
</option>
<option value="headerbtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='headerbtn'){?>selected="selected"<?php }?>><?php echo vtranslate('Button in Headerrow','Settings:Workflow2');?>
</option>
<option value="listviewbtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='listviewbtn'){?>selected="selected"<?php }?>><?php echo vtranslate('Listview Top Button','Settings:Workflow2');?>
</option>
<option value="detailbtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='detailbtn'){?>selected="selected"<?php }?>><?php echo vtranslate('Detailview Top Button','Settings:Workflow2');?>
</option>
<option value="relatedbtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='relatedbtn'){?>selected="selected"<?php }?>><?php echo vtranslate('Campaign Relations Button','Settings:Workflow2');?>
</option>
<option value="morebtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='morebtn'){?>selected="selected"<?php }?>><?php echo vtranslate('More Action Button','Settings:Workflow2');?>
</option>
<option value="fieldbtn" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']=='fieldbtn'){?>selected="selected"<?php }?>><?php echo vtranslate('Button in Field','Settings:Workflow2');?>
</option>
</optgroup>
<optgroup label="<?php echo vtranslate('Custom Types','Settings:Workfow2');?>
">
<?php $_smarty_tpl->tpl_vars['Type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['Type']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FrontendTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['Type']->key => $_smarty_tpl->tpl_vars['Type']->value){
$_smarty_tpl->tpl_vars['Type']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['Type']->value['key'];?>
" <?php if ($_smarty_tpl->tpl_vars['link']->value['position']==$_smarty_tpl->tpl_vars['Type']->value['key']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Type']->value['title'];?>
</option>
<?php } ?>
</optgroup>
</select>
</td>
<td style="text-align: left;"">
<div class="ConfigContainer" data-types="sidebar">
<label>
<span style="display:inline-block;width:140px;">Show in ListView:</span>
<input type="checkbox" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_listview" name="listview" data-field="listview" value="1" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" class="saveOnBlur" <?php if ($_smarty_tpl->tpl_vars['link']->value['listview']=='1'){?>checked="checked"<?php }?> />
</label>
</div>
<div class="ConfigContainer" data-types="sidebar,listviewbtn,morebtn,detailbtn,relatedbtn,fieldbtn,headerbtn">
<span style="display:inline-block;width:140px;">Button Color:</span>
<input type="text" style="margin-bottom:0;" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_color" class="defaultTextfield saveOnBlur color {hash:true}" data-field="color" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" value="<?php if ($_smarty_tpl->tpl_vars['link']->value['color']==''){?>#3D57FF<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['link']->value['color'];?>
<?php }?>" />
<label>
<input type="checkbox" value="1" class="saveOnBlur" data-field="config-defaultlayout" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" <?php if (!empty($_smarty_tpl->tpl_vars['link']->value['config']['defaultlayout'])){?>checked="checked"<?php }?> />
No Backgroundcolor, but default Button Layout
</label>
</div>
<div class="ConfigContainer" data-types="fieldbtn" data-content="fieldlist">
<span style="display:inline-block;width:140px;">Select Fields:</span>
<div style="display:inline;" class="FieldListing" data-value="{}"></div>
</div>
<div class="ConfigContainer" data-types="fieldbtn">
<label>
<span style="display:inline-block;width:140px;">Use Dropdown:</span>
<input type="checkbox" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_dropdown" name="config-dropdown" data-field="config-dropdown" value="1" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" class="saveOnBlur" <?php if ($_smarty_tpl->tpl_vars['link']->value['config']['dropdown']=='1'){?>checked="checked"<?php }?> />
</label>
</div>
<?php $_smarty_tpl->tpl_vars['Type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['Type']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FrontendTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['Type']->key => $_smarty_tpl->tpl_vars['Type']->value){
$_smarty_tpl->tpl_vars['Type']->_loop = true;
?>
<div class="ConfigContainer" data-types="<?php echo $_smarty_tpl->tpl_vars['Type']->value['key'];?>
">
<?php $_smarty_tpl->tpl_vars['FieldData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FieldData']->_loop = false;
$_smarty_tpl->tpl_vars['Field'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['Type']->value['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FieldData']->key => $_smarty_tpl->tpl_vars['FieldData']->value){
$_smarty_tpl->tpl_vars['FieldData']->_loop = true;
$_smarty_tpl->tpl_vars['Field']->value = $_smarty_tpl->tpl_vars['FieldData']->key;
?>
<div>
<label>
<span style="display:inline-block;width:140px;"><?php echo vtranslate($_smarty_tpl->tpl_vars['FieldData']->value['label'],$_smarty_tpl->tpl_vars['Type']->value['langmodule']);?>
:</span>
<?php if ($_smarty_tpl->tpl_vars['FieldData']->value['type']==Workflow2_FrontendType_Model::TYPE_COLORPICKER){?>
<?php if ($_smarty_tpl->tpl_vars['Field']->value!='color'){?>
<input type="text" style="margin-bottom:0;" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" class="defaultTextfield saveOnBlur color {hash:true}" data-field="config-<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" value="<?php if (empty($_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value])){?><?php echo $_smarty_tpl->tpl_vars['FieldData']->value['default'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value];?>
<?php }?>" />
<?php }else{ ?>
<input type="text" style="margin-bottom:0;" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" class="defaultTextfield saveOnBlur color {hash:true}" data-field="<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" value="<?php if (empty($_smarty_tpl->tpl_vars['link']->value[$_smarty_tpl->tpl_vars['Field']->value])){?><?php echo $_smarty_tpl->tpl_vars['FieldData']->value['default'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['link']->value[$_smarty_tpl->tpl_vars['Field']->value];?>
<?php }?>" />
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['FieldData']->value['type']==Workflow2_FrontendType_Model::TYPE_CHECKBOX){?>
<input type="checkbox" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" name="config-<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" data-field="config-<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" value="1" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" class="saveOnBlur" <?php if ((isset($_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value])&&$_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value]=='1')||(!isset($_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value])&&!empty($_smarty_tpl->tpl_vars['FieldData']->value['default']))){?>checked="checked"<?php }?> />
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['FieldData']->value['type']==Workflow2_FrontendType_Model::TYPE_FIELDDSELECT){?>
<div style="display:inline;" data-field="<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" class="FieldListing" data-value="{}"></div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['FieldData']->value['type']==Workflow2_FrontendType_Model::TYPE_ICON){?>
<select class="select2 saveOnBlur" data-id="<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
" id="config_<?php echo $_smarty_tpl->tpl_vars['link']->value['id'];?>
_<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
" style="width:300px;" data-field="config-<?php echo $_smarty_tpl->tpl_vars['Field']->value;?>
">
<?php $_smarty_tpl->tpl_vars['ICON'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ICON']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FA_ICONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ICON']->key => $_smarty_tpl->tpl_vars['ICON']->value){
$_smarty_tpl->tpl_vars['ICON']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['ICON']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['link']->value['config'][$_smarty_tpl->tpl_vars['Field']->value]==$_smarty_tpl->tpl_vars['ICON']->value){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['ICON']->value;?>
</option>
<?php } ?>
</select>
<?php }?>
</label>
</div>
<?php } ?>
</div>
<?php } ?>
</td>
<td>
<?php if ($_smarty_tpl->tpl_vars['link']->value['color']!='separator'){?>
<?php }?>
</td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr style="background-color: #eee;">
<td></td>
<td colspan="5"">
<?php echo vtranslate('disable complete Workflow List in Sidebar','Settings:Workflow2');?>
:&nbsp;&nbsp;&nbsp;<input type="checkbox" class="SaveConfigOnBlur" data-field="hide_listview" data-module="<?php echo $_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['frontendConfig']->value[$_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name']])&&$_smarty_tpl->tpl_vars['frontendConfig']->value[$_smarty_tpl->tpl_vars['linkArray']->value[0]['module_name']]['hide_listview']=='1'){?>checked="checked"<?php }?> />
&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo vtranslate('add other Object','Settings:Workflow2');?>
:&nbsp;&nbsp;&nbsp;<select class="separatorChooser"><option value="separator">Separator</option></select><button class="btn btn-primary addSpecialObjectButton" type="button" name=""><?php echo vtranslate('add','Settings:Workflow2');?>
</button>
</td>
</tr>
</tfoot>
</table>
<?php } ?>
</div>
</div>
<script type="text/javascript">
var configurations = <?php echo json_encode($_smarty_tpl->tpl_vars['configurations']->value);?>
;
var frontendTypes = <?php echo json_encode($_smarty_tpl->tpl_vars['FrontendTypes']->value);?>
;
</script>
<?php }} ?>