145 regels
11 KiB
Twig
145 regels
11 KiB
Twig
<style>
|
|
#d3log_lib_cfg {
|
|
width: 98%;
|
|
}
|
|
#d3log_lib_cfg table {
|
|
width: 100%;
|
|
}
|
|
#d3log_lib_cfg table td {
|
|
width: 50%;
|
|
}
|
|
#d3log_lib_cfg table table td {
|
|
width: auto;
|
|
}
|
|
</style>
|
|
|
|
<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
|
|
{{ oViewConf.getHiddenSid()|raw }}
|
|
<input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName()|raw }}">
|
|
<input type="hidden" name="fnc" value="save">
|
|
<input type="hidden" name="oxid" value="{{ oxid }}">
|
|
<input type="hidden" name="modid" value="{{ oView.getSelectedModId() }}">
|
|
<input type="hidden" name="editval[oxid]" value="{{ oxid }}">
|
|
|
|
<table style="border: none" id="d3log_lib_cfg">
|
|
<tr>
|
|
<td style="vertical-align: top" class="edittext">
|
|
|
|
{% set blD3HasLog = oView.checkD3Log() %}
|
|
<table style="border: none; padding: 0; border-spacing: 0; border-collapse: collapse">
|
|
{% if blD3HasLog %}
|
|
<tr>
|
|
<td class="edittext ext_edittext">
|
|
<label for="blLog_useExtendedLogging">{{ translate({ ident: "D3_LOG_CFG_USEEXTLOG" }) }}</label>
|
|
</td>
|
|
<td class="edittext ext_edittext" style="text-align: left">
|
|
<input type="hidden" name="value[blLog_useExtendedLogging]" value="0">
|
|
<input id="blLog_useExtendedLogging" type="checkbox" name="value[blLog_useExtendedLogging]" value="1" {% if edit.getValue('blLog_useExtendedLogging') %} checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOG_CFG_EXTENDED_LOGGING_HELP"), 'sHelpText': help_text("D3_LOG_CFG_EXTENDED_LOGGING_HELP")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext ext_edittext">
|
|
<label for="blLog_enableErrorReporting">{{ translate({ ident: "D3_LOG_CFG_ENABLE_ERR_REPORT" }) }}</label>
|
|
</td>
|
|
<td class="edittext ext_edittext" style="text-align: left">
|
|
<input type="hidden" name="value[blLog_enableErrorReporting]" value="0">
|
|
<input id="blLog_enableErrorReporting" type="checkbox" name="value[blLog_enableErrorReporting]" value="1" {% if edit.getValue('blLog_enableErrorReporting') %} checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOG_CFG_ENABLE_ERR_REPORT_HELP"), 'sHelpText': help_text("D3_LOG_CFG_ENABLE_ERR_REPORT_HELP")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext ext_edittext">
|
|
<label for="blLog_enableExceptionReporting">{{ translate({ ident: "D3_LOG_CFG_ENABLE_EXC_REPORT" }) }}</label>
|
|
</td>
|
|
<td class="edittext ext_edittext" style="text-align: left">
|
|
<input type="hidden" name="value[blLog_enableExceptionReporting]" value="0">
|
|
<input id="blLog_enableExceptionReporting" type="checkbox" name="value[blLog_enableExceptionReporting]" value="1" {% if edit.getValue('blLog_enableExceptionReporting') %} checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOG_CFG_ENABLE_EXC_REPORT_HELP"), 'sHelpText': help_text("D3_LOG_CFG_ENABLE_EXC_REPORT_HELP")} %}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td class="edittext ext_edittext">
|
|
<label for="blLog_enableAdminProfiling">{{ translate({ ident: "D3_LOG_CFG_ENABLE_ADMINPROFILING" }) }}</label>
|
|
</td>
|
|
<td class="edittext ext_edittext" style="text-align: left">
|
|
<input type="hidden" name="value[blLog_enableAdminProfiling]" value="0">
|
|
<input id="blLog_enableAdminProfiling" type="checkbox" name="value[blLog_enableAdminProfiling]" value="1" {% if edit.getValue('blLog_enableAdminProfiling') %} checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOG_CFG_ENABLE_ADMINPROFILING_HELP"), 'sHelpText': help_text("D3_LOG_CFG_ENABLE_ADMINPROFILING_HELP")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="edittext ext_edittext">
|
|
<label for="blLog_showAllExceptions">{{ translate({ ident: "D3_LOG_CFG_SHOWALLEXCEPTIONS" }) }}</label>
|
|
</td>
|
|
<td class="edittext ext_edittext" style="text-align: left">
|
|
<input type="hidden" name="value[blLog_showAllExceptions]" value="0">
|
|
<input id="blLog_showAllExceptions" type="checkbox" name="value[blLog_showAllExceptions]" value="1" {% if edit.getValue('blLog_showAllExceptions') %} checked{% endif %} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOG_CFG_SHOWALLEXCEPTIONS_HELP"), 'sHelpText': help_text("D3_LOG_CFG_SHOWALLEXCEPTIONS_HELP")} %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<fieldset style="margin: 10px 3px;">
|
|
<Legend>{{ translate({ ident: "D3_LOG_CFG_MAILMESSAGING" }) }}</Legend>
|
|
|
|
<table style="width: 100%;">
|
|
{% for iMailMessageId in oView.getUsedMailMessageSlots() %}
|
|
<tr>
|
|
<td>{{ iMailMessageId }}.</td>
|
|
{% set sFieldName = "sLog_messageadr" ~ iMailMessageId %}
|
|
<td>{{ translate({ ident: "D3_LOG_CFG_MAILADDRESS" }) }}:
|
|
<input type="text" size="20" maxlength="80" name="value[{{ sFieldName }}]" value="{{ edit.getValue(sFieldName) }}" {{ readonly }}>
|
|
</td>
|
|
<td>
|
|
<label for="{{ sFieldName }}">{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL" }) }}:</label>
|
|
{% set sFieldName = "sLog_messageerrlevel" ~ iMailMessageId %}
|
|
<select id="{{ sFieldName }}" class="edittext" name="value[{{ sFieldName }}]" {{ readonly }}>
|
|
<option style="background-color: silver;" value="" {% if edit.getValue(sFieldName) == '' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_NOERR" }) }}</option>
|
|
<option style="background-color: darkred; color: white;" value="emergency" {% if edit.getValue(sFieldName) == 'emergency' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_EMERGENCY" }) }}</option>
|
|
<option style="background-color: #C00; color: white;" value="alert" {% if edit.getValue(sFieldName) == 'alert' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_ALERT" }) }}</option>
|
|
<option style="background-color: red;" value="critical" {% if edit.getValue(sFieldName) == 'critical' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_CRITICAL" }) }}</option>
|
|
<option style="background-color: #FAA;" value="error" {% if edit.getValue(sFieldName) == 'error' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_ERROR" }) }}</option>
|
|
<option value="warning" {% if edit.getValue(sFieldName) == 'warning' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_MAILERRLEVEL_WARNING" }) }}</option>
|
|
</select>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOGTYPE_DESC"), 'sHelpText': help_text("D3_LOGTYPE_DESC")} %}
|
|
</td>
|
|
<td>
|
|
{{ translate({ ident: "D3_LOG_CFG_INTERVAL" }) }}:
|
|
{% set sFieldName = "sLog_messageinterval" ~ iMailMessageId %}
|
|
{{ translate({ ident: "D3_LOG_CFG_INTERVALMAX" }) }}
|
|
<input type="text" size="3" maxlength="4" value="{% if edit.getValue(sFieldName) %}{{ edit.getValue(sFieldName) }}{% else %}1{% endif %}" name="value[{{ sFieldName }}]" {{ readonly }}>
|
|
{% set sFieldName = "sLog_messageintervaltype" ~ iMailMessageId %}
|
|
<select class="edittext" name="value[{{ sFieldName }}]" {{ readonly }}>
|
|
<option value="day" {% if edit.getValue(sFieldName) == 'day' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_INTERVALMAX_DAYS" }) }}</option>
|
|
<option value="hour" {% if edit.getValue(sFieldName) == 'hour' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_INTERVALMAX_HOURS" }) }}</option>
|
|
<option value="minute" {% if edit.getValue(sFieldName) == 'minute' %}selected{% endif %}>{{ translate({ ident: "D3_LOG_CFG_INTERVALMAX_MINS" }) }}</option>
|
|
</select>
|
|
</td>
|
|
<td>
|
|
{% set sFieldName = "sLog_messagetimestamp" ~ iMailMessageId %}
|
|
{{ translate({ ident: "D3_LOG_CFG_MAILLASTSEND" }) }}: {% if edit.getValue(sFieldName) %}{{ edit.getValue(sFieldName)|date_format("d.m.Y H:i:s") }}{% else %}--{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="d3modcfg_btn icon d3color-green">
|
|
<button type="submit" name="save" {{ readonly }}>
|
|
<i class="fas fa-check-circle fa-inverse"></i>{{ translate({ ident: "D3_CFG_MOD_SAVE" }) }}
|
|
</button>
|
|
</span>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|