Files
crm.twinpol.com/modules/EcmAgreements/tpl/AgreementTemplates.tpl
2025-05-12 15:46:37 +00:00

49 lines
2.3 KiB
Smarty
Executable File

<script type="text/javascript" src="modules/EcmAgreements/javascript/AgreementTemplates.js"></script>
<script type="text/javascript" src="include/jQuery/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css"/>
<link rel="stylesheet" type="text/css" href="modules/EcmAgreements/tpl/AgreementTemplates.css">
<h1>{$MOD.LBL_AGREEMENT_TEMPLATE_EDITOR}</h1>
<br>
{html_options name=templates id=templates options=$templates}
<input type="button" id="edit" value='{$MOD.LBL_EDIT_LABEL}' title="{$MOD.LBL_EDIT_LABEL_TIP}"/>
<input type="button" id="add" value='{$MOD.LBL_ADD_NEW}' title="{$MOD.LBL_ADD_NEW_TIP}"/>
<input type="button" id="remove" value='{$MOD.LBL_REMOVE}' title="{$MOD.LBL_REMOVE_TIP}"/>
<input type="button" id="preview_pdf" value='{$MOD.LBL_SHOW_PDF_TEMPLATE}'/>
<input type="hidden" id="pdf_template_selected">
<div id="add_div" style="display:none">
<br>
{$MOD.LBL_NAME}: <input type="text" id="add_label">
<input type="button" id="add_save" value='{$MOD.LBL_SAVE}'/>
<input type="button" id="cancel" onclick="hide()"value='{$MOD.LBL_CANCEL}'/>
</div>
<div id="edit_div" style="display:none">
<br>
{$MOD.LBL_NAME}: <input type="text" id="edit_label">
<input type="button" id="edit_save" value='{$MOD.LBL_SAVE}'/>
<input type="button" id="cancel" onclick="hide()"value='{$MOD.LBL_CANCEL}'/>
</div>
<br><br>
<input type="button" id="save" value='{$MOD.LBL_SAVE}' title="{$MOD.LBL_SAVE_TIP}"/><br>
{$MOD.LBL_MARGIN_TOP} <input class="margin" type="number" name="margin_top" id ="margin_top"/>
{$MOD.LBL_MARGIN_BOTTOM} <input class="margin" type="number" name="margin_bottom" id ="margin_bottom"/>
{$MOD.LBL_MARGIN_LEFT} <input class="margin" type="number" name="margin_left" id ="margin_left"/>
{$MOD.LBL_MARGIN_RIGHT} <input class="margin" type="number" name="margin_right" id ="margin_right"/>
<table style="width:100%">
<tr>
<td style="width:80%;">
<textarea id="template" name="template"></textarea>
</td>
<td style="width:20%;font-size:12px">
{$MOD.LBL_AGREEMENT_TEMPLATE_HELP}<br><br>
<table id="parseFieldsTable">
</table>
</td>
</td>
</table>
<br>
<h1>{$MOD.LBL_PDF_TEMPLATE_ADITIONAL_FIELDS}</h1>
{$MOD.LBL_PDF_TEMPLATE_ADITIONAL_FIELDS_HELP}
<table id="pdf_template_aditional_fields" class="positions">
</table>