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

75 lines
4.4 KiB
Twig
Raw Normal View History

2024-02-09 18:33:48 +01:00
{% if edit.getErrorMessage() %}
<div class="extension_error">
{{ edit.getErrorMessage() }}
</div>
{% endif %}
<table style="width: 100%">
<tr>
<td style="width:50%; border-right: 1px solid #999;">
<table style="border-spacing: 0; padding: 0; border: none; width: 100%">
<tr>
<td class="edittext ext_edittext">
<label for="module_active">{{ translate({ ident: "D3_CFG_MOD_GENERAL_MODULEACTIVE" }) }}</label>
</td>
<td class="edittext ext_edittext">
<input type="hidden" name="editval[oxactive]" value='0'>
<input id="module_active" class="edittext ext_edittext" type="checkbox" name="editval[oxactive]" value='1' {% if edit.getFieldData('oxactive') == 1 %}checked{% endif %}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_CFG_MOD_GENERAL_MODULEACTIVE_DESC"), 'sHelpText': help_text("D3_CFG_MOD_GENERAL_MODULEACTIVE_DESC")} %}
</td>
</tr>
{% if oView.getHasDebugSwitch() %}
<tr>
<td class="edittext ext_edittext">
{% if oView.getLogStatus('debug', false) %}<span style="font-weight: bold; color: #CD0210;">{% endif %}<label for="module_debug">{{ translate({ ident: "D3_CFG_MOD_GENERAL_DEBUGACTIVE" }) }}</label>{% if oView.getLogStatus(false, 'debug') %}</span>{% endif %}
</td>
<td class="edittext ext_edittext">
<input type="hidden" name="logtypes[7]" value="0">
<input id="module_debug" class="edittext ext_edittext" type="checkbox" name="logtypes[7]" value='1' {% if oView.getLogStatus('debug', false) %}checked{% endif %}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id(oView.getDebugHelpTextIdent()), 'sHelpText': help_text(oView.getDebugHelpTextIdent())} %}
</td>
</tr>
{% endif %}
{% if oView.getHasTestSwitch() %}
<tr>
<td class="edittext ext_edittext">
{% if oView.getLogStatus('test', false) %}<span style="font-weight: bold; color: #CD0210;">{% endif %}<label for="module_test">{{ translate({ ident: "D3_CFG_MOD_GENERAL_TESTMODEACTIVE" }) }}</label>{% if oView.getLogStatus('test', false) %}</span>{% endif %}
</td>
<td class="edittext ext_edittext">
<input type="hidden" name="logtypes[8]" value="0">
<input id="module_test" class="edittext ext_edittext" type="checkbox" name="logtypes[8]" value='1' {% if oView.getLogStatus('test', false) %}checked{% endif %}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id(oView.getTestModeHelpTextIdent()), 'sHelpText': help_text(oView.getTestModeHelpTextIdent())} %}
</td>
</tr>
{% endif %}
</table>
</td>
<td>
{% set blD3HasLog = oView.checkD3Log() %}
{% set oLogSet = oView.getLogSet() %}
<table style="border-spacing: 0; border-collapse: collapse; padding: 0; border: none; width: 100%;">
<tr>
<td class="edittext ext_edittext" style="width: 50%;">
{% if blD3HasLog %}
<label for="loglevelelement">{{ translate({ ident: "D3_CFG_MOD_GENERAL_MODULELOGGING" }) }}</label>
{% endif %}
</td>
<td class="edittext ext_edittext" style="text-align: left">
{% if blD3HasLog %}
{% include "@d3modcfg_lib/admin/inc/loglevel_form.html.twig" with {oLogSet: oLogSet, oModule: false} %}
{% endif %}
</td>
</tr>
<tr>
<td class="edittext ext_edittext" style="width: 50%;">
&nbsp;
</td>
<td class="edittext ext_edittext" style="text-align: left">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>