ModCfg/views/twig/admin/inc/loglevel_form.html.twig

17 lines
1.9 KiB
Twig
Raw Normal View History

2024-02-09 18:33:48 +01:00
{% if oLogSet.getValue('blLog_useExtendedLogging') %}
{% set oLog = oView.d3getLog() %}
{% for sName, iStatus in oLog.getAllLogTypes() %}
<input type="hidden" name="logtypes[{{ iStatus }}]" value="0">
2024-04-19 16:15:46 +02:00
<input type="checkbox" value="1" name="logtypes[{{ iStatus }}]" id="{% if oModule|default('') is not same as ('') %}{{ oModule.getId() }}{% endif %}_{{ sName }}_{{ iStatus }}" {{ readonly }} {% if oView.getLogStatus(sName, oModule) %} checked{% endif %}><label for="{% if oModule|default('') is not same as ('') %}{{ oModule.getId() }}{% endif %}_{{ sName }}_{{ iStatus }}">{{ oView.getLogTypeTranslation(sName) }}</label> {% include "inputhelp.html.twig" with {'sHelpId': help_id(""), 'sHelpText': help_text("")} %}<br>
2024-02-09 18:33:48 +01:00
{% endfor %}
{% else %}
2024-04-19 16:15:46 +02:00
<select id="loglevelelement" name="loglevel" class="edittext" {{ readonly }}>
2024-02-09 18:33:48 +01:00
<option value="userdefined">{{ translate({ ident: "D3_CFG_LOG_TYPE_USERDEFINED" }) }}</option>
<option value="none" {% if oView.getLogStatus('none', oModule) %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_NONE" }) }}</option>
<option value="error" {% if oView.getLogStatus('error', oModule) %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_ERROR" }) }}</option>
<option value="warning" {% if oView.getLogStatus('warning', oModule) %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_WARNING" }) }}</option>
<option value="notice" {% if oView.getLogStatus('notice', oModule) %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_NOTICE" }) }}</option>
<option value="info" {% if oView.getLogStatus('info', oModule) %} selected{% endif %}>{{ translate({ ident: "D3_CFG_LOG_TYPE_INFO" }) }}</option>
</select>
{% endif %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_LOGTYPE_DESC"), 'sHelpText': help_text("D3_LOGTYPE_DESC")} %}