24 regels
1.5 KiB
Twig
24 regels
1.5 KiB
Twig
{% block usermanager_admin_requ_hasvoucher %}
|
|
<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_hasvoucher_editor %}
|
|
<SELECT id="RequVoucherType" class="editinput" name="value[sCheckVoucherType]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sCheckVoucherType') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_hasvoucher_viewer %}
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
{% if edit.getValue('sCheckVoucherType') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_VOUCHER_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_VOUCHER_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %} |