29 regels
2.1 KiB
Twig
29 regels
2.1 KiB
Twig
{% block usermanager_admin_requ_ordermintimespan %}
|
|
<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_ordermintimespan_editor %}
|
|
<label for="RequOrderMinTimespan">{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERMINIMUMTIMESPAN" }) }}</label>
|
|
<input id="RequOrderMinTimespan" style="text-align: right;" class="edittext ext_edittext" type="text" size="4" maxlength="3" name="value[sOrderMinTimespanValue]" value='{{ edit.getValue('sOrderMinTimespanValue') }}' {{ blActionRestriction }} {{ readonly }}>
|
|
<SELECT id="RequOrderMinTimespanUnit" class="editinput" name="value[sOrderMinTimespanUnit]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sOrderMinTimespanUnit') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_ordermintimespan_viewer %}
|
|
{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERMINIMUMTIMESPAN" }) }}
|
|
{{ edit.getValue('sOrderMinTimespanValue') }}
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
{% if edit.getValue('sOrderMinTimespanUnit') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_ORDERMINTIMESPAN_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_ORDERMINTIMESPAN_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %}
|