41 regels
2.7 KiB
Twig
41 regels
2.7 KiB
Twig
{% block usermanager_admin_requ_ordermaxsum %}
|
|
{{ script({ include: "https://cdnjs.cloudflare.com/ajax/libs/cleave.js/1.6.0/cleave.min.js", dynamic: __oxid_include_dynamic }) }}
|
|
<dl class="{{ blActionRestriction }}">
|
|
<dt>
|
|
<input type="hidden" name="value[blCheckMaxOrderSum_status]" value="0">
|
|
<input id="RequMaxOrderSum" class="edittext ext_edittext" type="checkbox" name="value[blCheckMaxOrderSum_status]" value='1' {% if edit.getValue('blCheckMaxOrderSum_status') == 1 %}checked{% endif %} {{ blActionRestriction }} {{ readonly }}>
|
|
<select name="value[sCheckMaxOrderSumType]" id="sCheckMaxOrderSumType">
|
|
{% for type, translation in oRequ.getTypeList() %}
|
|
<option value="{{ type }}" {% if edit.getValue('sCheckMaxOrderSumType') == type %}selected{% endif %}>{{ translate({ ident: translation }) }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<label for="RequMaxOrderSum">{{ translate({ ident: "D3_USERMANAGER_REQU_MAXORDERSUM" }) }}</label>
|
|
</dt>
|
|
<dd>
|
|
{% if oView.isEditMode() %}
|
|
{% block usermanager_admin_requ_ordermaxsum_editor %}
|
|
<input id="sCheckMaxOrderSumValue" style="text-align: right;" class="edittext ext_edittext" type="text" size="10" maxlength="10" name="value[sCheckMaxOrderSumValue]" value='{{ edit.getValue('sCheckMaxOrderSumValue') }}' {{ blActionRestriction }} {{ readonly }}> {{ translate({ ident: "D3_USERMANAGER_REQU_ORDERSUM_DEFCUR" }) }}
|
|
|
|
{% set d3JsFnc %}{% apply spaceless %}
|
|
new Cleave('#sCheckMaxOrderSumValue', {
|
|
numeral: true,
|
|
numeralThousandsGroupStyle: 'thousand',
|
|
numeralDecimalMark: ',',
|
|
delimiter: '.',
|
|
stripLeadingZeroes: false,
|
|
swapHiddenInput: true
|
|
});
|
|
{% endapply %}{% endset %}
|
|
{{ script({ add: d3JsFnc.__toString(), dynamic: __oxid_include_dynamic }) }}
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_requ_ordermaxsum_viewer %}
|
|
{{ edit.getValue('sCheckMaxOrderSumValue') }} {{ translate({ ident: "D3_USERMANAGER_REQU_ORDERSUM_DEFCUR" }) }}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_REQU_MAXORDERSUM_DESC"), 'sHelpText': help_text("D3_USERMANAGER_REQU_MAXORDERSUM_DESC")} %}
|
|
</dd>
|
|
<dd class="spacer"></dd>
|
|
</dl>
|
|
{% endblock %}
|