Usermanager/views/twig/admin/Actions/d3usermanager_action_setfieldvalue.html.twig

23 regels
2.0 KiB
Twig

{% block usermanager_admin_action_setfieldvalue %}
<dl class="{{ blActionRestriction }}">
{% include "@d3usermanager/admin/inc/d3usermanager_activeswitch.html.twig" with {oActionRequ: oAction, blActionRestriction: blActionRestriction, readonly: readonly} %}
<dd>
{% if oView.isEditMode() %}
{% block usermanager_admin_action_setfieldvalue_editor %}
<label for="ActionUserSetFieldField">{{ translate({ ident: "D3_USERMANAGER_ACTION_USERADDFIELDVALUE_FIELD" }) }}</label>
<input id="ActionUserSetFieldField" type="text" name="value[sActionAddField_field]" size="30" maxlength="50" value="{{ edit.getValue('sActionAddField_field') }}" {{ blActionRestriction }} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_ACTION_USERADDFIELDVALUE_FIELD_DESC"), 'sHelpText': help_text("D3_USERMANAGER_ACTION_USERADDFIELDVALUE_FIELD_DESC")} %}<br>
<label for="ActionUserSetFieldValue">{{ translate({ ident: "D3_USERMANAGER_ACTION_USERADDFIELDVALUE_VALUE" }) }}</label>
<input id="ActionUserSetFieldValue" type="text" name="value[sActionAddField_value]" size="30" maxlength="50" value="{{ edit.getValue('sActionAddField_value') }}" {{ blActionRestriction }} {{ readonly }}>
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_ACTION_USERADDFIELDVALUE_DESC"), 'sHelpText': help_text("D3_USERMANAGER_ACTION_USERADDFIELDVALUE_DESC")} %}<br>
{% endblock %}
{% else %}
{% block usermanager_admin_action_setfieldvalue_viewer %}
{{ translate({ ident: "D3_USERMANAGER_ACTION_USERADDFIELDVALUE_FIELD" }) }} {{ edit.getValue('sActionAddField_field') }}<br>
{{ translate({ ident: "D3_USERMANAGER_ACTION_USERADDFIELDVALUE_VALUE" }) }} {{ edit.getValue('sActionAddField_value') }}<br>
{% endblock %}
{% endif %}
</dd>
<div class="spacer"></div>
</dl>
{% endblock %}