mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-27 08:38:46 +00:00
113 lines
3.8 KiB
Smarty
113 lines
3.8 KiB
Smarty
{*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************}
|
|
{* crmv@64542 crmv@69398 *}
|
|
|
|
{* some extra translations *}
|
|
|
|
<script type="text/javascript">
|
|
var ModuleMakerTrans = {ldelim}{rdelim};
|
|
{if is_array($TRANS) && count($TRANS) > 0} {* crmv@167234 *}
|
|
{foreach key=lbl item=tr from=$TRANS}
|
|
ModuleMakerTrans['{$lbl}'] = '{"'"|str_replace:"\'":$tr}';
|
|
{/foreach}
|
|
{/if}
|
|
</script>
|
|
|
|
|
|
{* javascript for the module maker *}
|
|
<script type="text/javascript" src="modules/Settings/ModuleMaker/ModuleMaker.js"></script>
|
|
|
|
{* some CSS *}
|
|
<style type="text/css">
|
|
{literal}
|
|
.mmaker_step_field_cell {
|
|
min-height: 40px;
|
|
height: 40px;
|
|
}
|
|
.floatingDiv {
|
|
display:none;
|
|
position: fixed;
|
|
}
|
|
.floatingHandle {
|
|
padding: 5px;
|
|
cursor: move;
|
|
}
|
|
.newfieldprop {
|
|
display:none;
|
|
}
|
|
{/literal}
|
|
</style>
|
|
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <!-- crmv@30683 -->
|
|
<tr>
|
|
<td valign="top"></td>
|
|
<td class="showPanelBg" style="padding: 5px;" valign="top" width="100%"> <!-- crmv@30683 -->
|
|
|
|
<div align=center>
|
|
{include file='SetMenu.tpl'}
|
|
{include file='Buttons_List.tpl'} {* crmv@30683 *}
|
|
<table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td rowspan="2" valign="top" width="50"><img src="{'module_maker.png'|resourcever}" alt="{$MOD.LBL_MODULE_MAKER}" title="{$MOD.LBL_MODULE_MAKER}" border="0" height="48" width="48"></td>
|
|
<td class="heading2" valign="bottom"><b> {$MOD.LBL_SETTINGS} > {$MOD.LBL_MODULE_MAKER}</b></td> <!-- crmv@30683 -->
|
|
</tr>
|
|
<tr>
|
|
<td class="small" valign="top">{$MOD.LBL_MODULE_MAKER_DESC}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table border="0" cellpadding="10" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td>
|
|
{if ($MODE eq "create" || $MODE eq "edit") && $STEP > 0}
|
|
{* navigation header *}
|
|
{include file="Settings/ModuleMaker/StepHeader.tpl"}
|
|
|
|
{* navigation footer *}
|
|
{include file="Settings/ModuleMaker/StepFooter.tpl"}
|
|
|
|
{* form for the step *}
|
|
<form id="module_maker_form" method="POST" action="index.php?module=Settings&action=ModuleMaker&mode={$MODE}&parentTab=Settings">
|
|
|
|
{* some basic variables *}
|
|
<input type="hidden" name="moduleid" id="moduleid" value="{$MODULEID}" />
|
|
<input type="hidden" name="module_maker_prev_step" id="module_maker_prev_step" value="{$STEP}" />
|
|
<input type="hidden" name="module_maker_step" id="module_maker_step" value="" />
|
|
<input type="hidden" name="module_maker_savedata" id="module_maker_savedata" value="0" />
|
|
|
|
{* box to dispaly errors *}
|
|
<div id="mmaker_error_box" class="dvtCellInfo" style="width:98%;color:red;font-weight:700;margin-bottom:30px;padding:10px;{if $STEP_ERROR eq ''}display:none;{/if}">{$STEP_ERROR}</div>
|
|
|
|
{* include the step template *}
|
|
{include file="Settings/ModuleMaker/Step`$STEP`.tpl"}
|
|
</form>
|
|
|
|
{elseif $MODE eq "import"}
|
|
|
|
{* box to dispaly errors *}
|
|
<div id="mmaker_error_box" class="dvtCellInfo" style="width:98%;color:red;font-weight:700;margin-bottom:30px;padding:10px;{if $IMPORT_ERROR eq ''}display:none;{/if}">{$IMPORT_ERROR}</div>
|
|
|
|
{include file="Settings/ModuleMaker/Import.tpl"}
|
|
|
|
{else}
|
|
|
|
{* box to dispaly errors *}
|
|
<div id="mmaker_error_box" class="dvtCellInfo" style="width:98%;color:red;font-weight:700;margin-bottom:30px;padding:10px;{if $LIST_ERROR eq ''}display:none;{/if}">{$LIST_ERROR}</div>
|
|
|
|
{include file="Settings/ModuleMaker/List.tpl"}
|
|
{/if}
|
|
|
|
{include file="Settings/ScrollTop.tpl"}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- End of Display -->
|
|
|
|
</div>
|
|
|
|
</td>
|
|
<td valign="top"></td>
|
|
</tr>
|
|
</table> |