57 regels
3.9 KiB
Twig
57 regels
3.9 KiB
Twig
{% block usermanager_admin_requ_ordertimespan %}
|
|
<dl class="{{ blActionRestriction }}">
|
|
<dt>
|
|
<input type="hidden" name="value[blCheckOrderTimespan_status]" value="0">
|
|
<input id="RequOrderTimespan1" class="edittext ext_edittext" type="checkbox" name="value[blCheckOrderTimespan_status]" value='1' {% if edit.getValue('blCheckOrderTimespan_status') == 1 %}checked{% endif %} {{ blActionRestriction }} {{ readonly }}>
|
|
|
|
{% if oView.isEditMode() %}
|
|
{% block usermanager_admin_requ_ordertimespan1_editor %}
|
|
<SELECT id="RequOrderTimespanOrderType" class="editinput" name="value[sOrderTimespanOrderType]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getOrderTypeList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sOrderTimespanOrderType') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_ordertimespan1_viewer %}
|
|
{% if edit.getValue('sOrderTimespanOrderType') == 'first' %}
|
|
{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERTIMESPAN_FIRST" }) }}
|
|
{% else %}
|
|
{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERTIMESPAN_LAST" }) }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
|
|
<label for="RequOrderTimespan1">{{ translate({ ident: "D3_USERMANAGER_REQU_ORDERTIMESPAN" }) }}</label>
|
|
</dt>
|
|
<dd>
|
|
{% if oView.isEditMode() %}
|
|
{% block usermanager_admin_requ_ordertimespan2_editor %}
|
|
<SELECT id="RequOrderTimespanType" class="editinput" name="value[sOrderTimespanType]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sOrderTimespanType') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
<input id="RequOrderTimespanMax" style="text-align: right;" class="edittext ext_edittext" type="text" size="4" maxlength="3" name="value[sOrderTimespanValue]" value='{{ edit.getValue('sOrderTimespanValue') }}' {{ blActionRestriction }} {{ readonly }}>
|
|
<SELECT id="RequOrderTimespanUnit" class="editinput" name="value[sOrderTimespanUnit]" size="1" {{ blActionRestriction }} {{ readonly }}>
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sOrderTimespanUnit') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</SELECT>
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_ordertimespan2_viewer %}
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
{% if edit.getValue('sOrderTimespanType') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{{ edit.getValue('sOrderTimespanValue') }}
|
|
{% for type, translation in oRequ.getUnitList() %}
|
|
{% if edit.getValue('sOrderTimespanUnit') == type %}{{ translate({ ident: translation }) }}{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_ORDERTIMESPAN_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_ORDERTIMESPAN_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %} |