Files
crm.clientright.ru/test/templates_c/v7/303b9a91a57d0fbb31009f5ca734d02ee73ce666.file.FieldCreate.tpl.php
Fedor cd90b0d58a feat: Добавлен инструмент генерации документов для AI Ассистента
- Создан API create_document_with_text.php для создания DOCX/XLSX/PPTX с текстом от AI
- Поддержка Markdown форматирования (заголовки, жирный, курсив, списки, код)
- Установлен PHPWord для красивого форматирования документов
- Исправлены пути сохранения (crm2/CRM_Active_Files/... без /crm/ в начале)
- Замена пробелов на подчеркивания в именах папок
- Создана документация для AI и разработчиков
- Добавлены API для работы с шаблонами Nextcloud
2025-11-12 19:46:06 +03:00

115 lines
19 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-12 14:52:59
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/LayoutEditor/FieldCreate.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7073765386914751b674810-41319108%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'303b9a91a57d0fbb31009f5ca734d02ee73ce666' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/LayoutEditor/FieldCreate.tpl',
1 => 1711810494,
2 => 'file',
),
),
'nocache_hash' => '7073765386914751b674810-41319108',
'function' =>
array (
),
'variables' =>
array (
'IS_FIELD_EDIT_MODE' => 0,
'QUALIFIED_MODULE' => 0,
'FIELD_MODEL' => 0,
'SELECTED_MODULE_NAME' => 0,
'MODULE' => 0,
'TITLE' => 0,
'ADD_TO_BASE_TABLE' => 0,
'SOURCE' => 0,
'HEADER_FIELDS_COUNT' => 0,
'ALL_BLOCK_LABELS' => 0,
'BLOCK_MODEL' => 0,
'BLOCK_ID' => 0,
'ADD_SUPPORTED_FIELD_TYPES' => 0,
'FIELD_TYPE' => 0,
'FIELD_TYPE_INFO' => 0,
'TYPE_INFO' => 0,
'TYPE_INFO_VALUE' => 0,
'RELATION_MODULE_NAME' => 0,
'IS_QUICKCREATE_SUPPORTED' => 0,
'IS_NAME_FIELD' => 0,
'FIELDS_INFO' => 0,
'NEW_FIELDS_INFO' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_6914751b6a876',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6914751b6a876')) {function content_6914751b6a876($_smarty_tpl) {?>
<div class="modal-dialog createFieldModal modelContainer <?php if (!$_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?>hide<?php }?>"><?php if (!$_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?><?php ob_start();?><?php echo vtranslate('LBL_CREATE_CUSTOM_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['TITLE'] = new Smarty_variable($_tmp1, null, 0);?><?php }else{ ?><?php ob_start();?><?php echo vtranslate('LBL_EDIT_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value,vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'),$_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value));?>
<?php $_tmp2=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['TITLE'] = new Smarty_variable($_tmp2, null, 0);?><?php }?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ModalHeader.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('TITLE'=>$_smarty_tpl->tpl_vars['TITLE']->value), 0);?>
<div class="modal-content"><form class="form-horizontal createCustomFieldForm"><input type="hidden" name="fieldid" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getId();?>
" /><input type="hidden" name="addToBaseTable" value="<?php echo $_smarty_tpl->tpl_vars['ADD_TO_BASE_TABLE']->value;?>
" /><input type="hidden" name="_source" value="<?php echo $_smarty_tpl->tpl_vars['SOURCE']->value;?>
" /><input type="hidden" name="fieldname" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');?>
" /><input type="hidden" id="headerFieldsCount" value="<?php echo $_smarty_tpl->tpl_vars['HEADER_FIELDS_COUNT']->value;?>
" /><div class="modal-body model-body-scrollenabled"><?php if (!$_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?><div class="form-group blockControlGroup hide"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_SELECT_BLOCK',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-7"><select class="blockList col-sm-9" name="blockid"><?php $_smarty_tpl->tpl_vars['BLOCK_MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = false;
$_smarty_tpl->tpl_vars['BLOCK_ID'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key => $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value){
$_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = true;
$_smarty_tpl->tpl_vars['BLOCK_ID']->value = $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key;
?><?php if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isAddCustomFieldEnabled()){?><?php if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('label')=='LBL_ITEM_DETAILS'&&in_array($_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value,getInventoryModules())){?><?php continue 1?><?php }?><option value="<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value;?>
" data-label="<?php echo $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('label');?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('label'),$_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);?>
</option><?php }?><?php } ?></select></div></div><?php }?><div class="form-group"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_SELECT_FIELD_TYPE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-7"><select class="fieldTypesList col-sm-9" name="fieldType" <?php if ($_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?> disabled="disabled"<?php }?>><?php $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['ADD_SUPPORTED_FIELD_TYPES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_TYPE']->key => $_smarty_tpl->tpl_vars['FIELD_TYPE']->value){
$_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = true;
?><?php if (!$_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value&&$_smarty_tpl->tpl_vars['FIELD_TYPE']->value=='Relation'){?> <?php continue 1?><?php }?><option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_TYPE']->value;?>
"<?php if (($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataTypeLabel()==$_smarty_tpl->tpl_vars['FIELD_TYPE']->value)){?>selected='selected'<?php }?><?php $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = false;
$_smarty_tpl->tpl_vars['TYPE_INFO'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO']->value[$_smarty_tpl->tpl_vars['FIELD_TYPE']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key => $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value){
$_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = true;
$_smarty_tpl->tpl_vars['TYPE_INFO']->value = $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key;
?>data-<?php echo $_smarty_tpl->tpl_vars['TYPE_INFO']->value;?>
="<?php echo $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value;?>
"<?php } ?>><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_TYPE']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option><?php } ?></select></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_LABEL_NAME',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
&nbsp;<span class="redColor">*</span></label><div class="controls col-sm-7"><input type="text" class='inputElement col-sm-9' maxlength="50" <?php if ($_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?>disabled="disabled"<?php }?> name="fieldLabel" value="<?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'),$_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value);?>
" data-rule-required='true' style='width: 75%' /></div></div><?php if (!$_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?><div class="form-group supportedType lengthsupported"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_LENGTH',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
&nbsp;<span class="redColor">*</span></label><div class="controls col-sm-7"><input type="text" name="fieldLength" class="inputElement" value="" data-rule-required='true'data-rule-positive="true" data-rule-WholeNumber='true' data-rule-illegal='true' style='width: 75%'/></div></div><div class="form-group supportedType decimalsupported hide"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_DECIMALS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
&nbsp;<span class="redColor">*</span></label><div class="controls col-sm-7"><input type="text" name="decimal" class="inputElement" value="" data-rule-required='true' style='width: 75%'/></div></div><div class="form-group supportedType preDefinedValueExists hide"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_PICKLIST_VALUES',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
&nbsp;<span class="redColor">*</span></label><div class="controls col-sm-7"><input type="text" id="picklistUi" class="col-sm-9 select2" name="pickListValues"placeholder="<?php echo vtranslate('LBL_ENTER_PICKLIST_VALUES',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-rule-required='true'data-rule-picklist='true'/></div></div><div class="form-group supportedType picklistOption hide"><label class="control-label fieldLabel col-sm-5">&nbsp;</label><div class="controls col-sm-7"><div class="checkbox row" style="margin-left: 5px;"><span class="col-sm-1"><input type="checkbox" name="isRoleBasedPickList" value="1" ></span><span style="margin-left: -10px;"><?php echo vtranslate('LBL_ROLE_BASED_PICKLIST',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span></div></div></div><div class="form-group supportedType relationModules hide"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('SELECT_MODULE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
&nbsp;<span class="redColor">*</span></label><div class="controls col-sm-7"><select class="col-sm-6 relationModule" name="relationmodule[]" multiple data-rule-required='true'><?php $_smarty_tpl->tpl_vars['RELATION_MODULE_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO']->value['Relation']['relationModules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->key => $_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->value){
$_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->value;?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->value,$_smarty_tpl->tpl_vars['RELATION_MODULE_NAME']->value);?>
</option><?php } ?></select></div></div><?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType()!='reference'){?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('DefaultValueUi.tpl',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL'=>$_smarty_tpl->tpl_vars['FIELD_MODEL']->value), 0);?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['IS_FIELD_EDIT_MODE']->value){?><div class="form-group"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_SHOW_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-7"><input type="hidden" name="presence" value="1"/><label class="checkbox"><input type="checkbox" class ='cursorPointer bootstrap-switch' id="fieldPresence" name="presence" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewable()){?> checked <?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isActiveOptionDisabled()){?> readonly="readonly" <?php }?> <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()){?> readonly="readonly" <?php }?>data-on-text="<?php echo vtranslate('LBL_YES');?>
" data-off-text="<?php echo vtranslate("LBL_NO");?>
" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('presence');?>
"/></label></div></div><?php }else{ ?><input type="hidden" name="presence" value="2" /><?php }?><div class="well fieldProperty"><div class="properties"><div class="row"><div class="form-group"><label class="control-label fieldLabel col-sm-5"><?php echo vtranslate('LBL_ENABLE_OR_DISABLE_FIELD_PROP',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label></div></div><div class="row"><div class="form-group col-sm-7"><label class="control-label fieldLabel col-sm-10"><i class="fa fa-exclamation-circle"></i> &nbsp; <?php echo vtranslate('LBL_MANDATORY_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-2"><input type="hidden" name="mandatory" value="O"/><label class="checkbox" style="margin-left: 6%;"><input type="checkbox" name="mandatory" class="<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()){?> cursorPointerNotAllowed <?php }else{ ?> cursorPointer<?php }?>" value="M" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()){?> checked="checked" <?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()){?>readonly="readonly"<?php }?>/></label></div></div><div class="form-group col-sm-6"><label class="control-label fieldLabel col-sm-7"><i class="fa fa-plus"></i>&nbsp;&nbsp;<?php echo vtranslate('LBL_QUICK_CREATE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-5"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()){?><input type="hidden" name="quickcreate" value=<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('quickcreate');?>
/><?php }else{ ?><input type="hidden" name="quickcreate" value="1" /><?php }?><?php $_smarty_tpl->tpl_vars["IS_QUICKCREATE_SUPPORTED"] = new Smarty_variable(($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getModule()->isQuickCreateSupported()), null, 0);?><input type="hidden" name="isquickcreatesupported" value="<?php echo $_smarty_tpl->tpl_vars['IS_QUICKCREATE_SUPPORTED']->value;?>
"><label class="checkbox" style="margin-left: 9%;"><input type="checkbox" class="<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()){?> cursorPointerNotAllowed <?php }else{ ?> cursorPointer<?php }?>" name="quickcreate" value="2" <?php if (($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('quickcreate')=='2'||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory())&&$_smarty_tpl->tpl_vars['IS_QUICKCREATE_SUPPORTED']->value){?> checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()){?>readonly="readonly"<?php }?>/></label></div></div></div><div class="row"><div class="form-group col-sm-7"><label class="control-label fieldLabel col-sm-10"><i class="fa fa-key"></i> &nbsp; <?php echo vtranslate('LBL_KEY_FIELD_VIEW',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-2"><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="margin-left: 6%;"><input type="checkbox" class="<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()){?> cursorPointerNotAllowed <?php }else{ ?> cursorPointer<?php }?>" name="summaryfield" value="1" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('summaryfield')=='1'){?>checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()){?>readonly="readonly"<?php }?> /></label></div></div><div class="form-group col-sm-6"><label class="control-label fieldLabel col-sm-7"><i class="fa fa-flag-o"></i> &nbsp; <span><?php echo vtranslate('LBL_HEADER_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span></label><div class="controls col-sm-5"><input type="hidden" name="headerfield" value="0"/><label class="checkbox" style="margin-left: 9%;"><input type="checkbox" class="<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isHeaderFieldOptionDisabled()){?> cursorPointerNotAllowed <?php }else{ ?> cursorPointer<?php }?>" name="headerfield" value="1" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('headerfield')=='1'){?>checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isHeaderFieldOptionDisabled()||$_smarty_tpl->tpl_vars['IS_NAME_FIELD']->value){?>readonly="readonly"<?php }?> /></label></div></div></div><div class="row"><div class="form-group col-sm-7"><label class="control-label fieldLabel col-sm-10"><img src="<?php echo vimage_path('MassEdit.png');?>
" height=14 width=14/> &nbsp; <?php echo vtranslate('LBL_MASS_EDIT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label><div class="controls col-sm-2"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()){?><input type="hidden" name="masseditable" value=<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('masseditable');?>
/><?php }else{ ?><input type="hidden" name="masseditable" value="2" /><?php }?><label class="checkbox" style="margin-left: 6%;"><input type="checkbox" class="<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()){?> cursorPointerNotAllowed <?php }else{ ?> cursorPointer<?php }?>" name="masseditable" value="1" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('masseditable')=='1'){?>checked="checked" <?php }?><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()){?>readonly="readonly"<?php }?>/></label></div></div><?php $_smarty_tpl->tpl_vars['IS_UITYPE_19_ENABLED'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCKEEnabled(), null, 0);?><div class="form-group uitype19 col-sm-6 hide"><label class="control-label fieldLabel col-sm-7"><i class="fa fa-pencil"></i> &nbsp; <span><?php echo vtranslate('LBL_CKE_FIELD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span></label><div class="controls col-sm-5"><input type="hidden" name="uitype19field" value="0"/><label class="checkbox" style="margin-left: 9%;"><input type="checkbox" class="cursorPointer" name="uitype19field" value="1" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCKEEnabled()=='1'){?>checked="checked"<?php }?>/></label></div></div></div></div></div></div><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('ModalFooter.tpl','Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</form></div><?php if ($_smarty_tpl->tpl_vars['FIELDS_INFO']->value!='[]'){?><script type="text/javascript">var uimeta = (function () {var fieldInfo = <?php echo $_smarty_tpl->tpl_vars['FIELDS_INFO']->value;?>
;var newFieldInfo = <?php echo $_smarty_tpl->tpl_vars['NEW_FIELDS_INFO']->value;?>
;return {field: {get: function (name, property) {if (name && property === undefined) {return fieldInfo[name];}if (name && property) {return fieldInfo[name][property]}},isMandatory: function (name) {if (fieldInfo[name]) {return fieldInfo[name].mandatory;}return false;},getType: function (name) {if (fieldInfo[name]) {return fieldInfo[name].type}return false;},getNewFieldInfo: function () {if (newFieldInfo['newfieldinfo']) {return newFieldInfo['newfieldinfo']}return false;}},};})();</script><?php }?></div><?php }} ?>