29 Zeilen
2.3 KiB
Twig
29 Zeilen
2.3 KiB
Twig
{% block usermanager_admin_requ_agecheck %}
|
|
<dl class="{{ blActionRestriction }}">
|
|
{% include "@d3usermanager/admin/inc/d3usermanager_activeswitch.html.twig" with {oActionRequ: oRequ, blActionRestriction: blActionRestriction, readonly: readonly} %}
|
|
<dd>
|
|
{% if oView.isEditMode() %}
|
|
{% block usermanager_admin_requ_agecheck_editor %}
|
|
<SELECT id="RequAgeCheckType" class="editinput" name="value[sAgeCheckType]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sAgeCheckType') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
<option value="less" {% if edit.getValue('sAgeCheckType') == 'less' %}selected{% endif %}>{{ translate({ ident: "D3_USERMANAGER_REQU_GENERAL_LESSEQUAL" }) }}</option>
|
|
<option value="higher" {% if edit.getValue('sAgeCheckType') == 'higher' %}selected{% endif %}>{{ translate({ ident: "D3_USERMANAGER_REQU_GENERAL_HIGHEREQUAL" }) }}</option>
|
|
</SELECT>
|
|
<input id="RequAgeCheckValue" style="text-align: right;" class="edittext ext_edittext" type="text" size="5" maxlength="4" name="value[sAgeCheckValue]" value='{{ edit.getValue('sAgeCheckValue') }}' {{ blActionRestriction }} {{ readonly }}>
|
|
{{ translate({ ident: "D3_USERMANAGER_REQU_AGECHECK_YEARS" }) }}
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_agecheck_viewer %}
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
{% if edit.getValue('sAgeCheckType') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{{ edit.getValue('sAgeCheckValue') }} {{ translate({ ident: "D3_USERMANAGER_REQU_AGECHECK_YEARS" }) }}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_AGECHECK_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_AGECHECK_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %} |