29 lignes
2.1 KiB
Twig
29 lignes
2.1 KiB
Twig
{% block usermanager_admin_requ_ordermaxtimespan %}
|
|
<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_ordermaxtimespan_editor %}
|
|
<label for="RequOrderMaxTimespan">{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERMAXIMUMTIMESPAN" }) }}</label>
|
|
<input id="RequOrderMaxTimespan" style="text-align: right;" class="edittext ext_edittext" type="text" size="4" maxlength="3" name="value[sOrderMaxTimespanValue]" value='{{ edit.getValue('sOrderMaxTimespanValue') }}' {{ blActionRestriction }} {{ readonly }}>
|
|
<SELECT id="RequOrderMaxTimespanUnit" class="editinput" name="value[sOrderMaxTimespanUnit]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sOrderMaxTimespanUnit') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_ordermaxtimespan_viewer %}
|
|
{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERMAXIMUMTIMESPAN" }) }}
|
|
{{ edit.getValue('sOrderMaxTimespanValue') }}
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
{% if edit.getValue('sOrderMaxTimespanUnit') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_ORDERMAXTIMESPAN_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_ORDERMAXTIMESPAN_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %}
|