29 regels
2.4 KiB
Twig
29 regels
2.4 KiB
Twig
{% block usermanager_admin_action_sendpushnotification %}
|
|
<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_sendpushnotification_editor %}
|
|
<label for="ActionUserSendPushNotificationUrl">{{ translate({ ident: "D3_USERMANAGER_ACTION_USERSENDPUSHNOTIFICATION_URL" }) }}</label>
|
|
<input id="ActionUserSendPushNotificationUrl" type="text" name="value[sActionSendPushNotification_url]" size="30" maxlength="150" value="{{ edit.getValue('sActionSendPushNotification_url') }}" {{ blActionRestriction }} {{ readonly }}>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_ACTION_ORDERSENDPUSHNOTIFICATION_URL_DESC"), 'sHelpText': help_text("D3_USERMANAGER_ACTION_ORDERSENDPUSHNOTIFICATION_URL_DESC")} %}<br>
|
|
|
|
<label for="ActionUserSendPushNotificationMethod">{{ translate({ ident: "D3_USERMANAGER_ACTION_USERSENDPUSHNOTIFICATION_METHOD" }) }}</label>
|
|
<select id="ActionUserSendPushNotificationMethod" name="value[sActionSendPushNotification_method]" {{ readonly }}>
|
|
{% for method, translation in oAction.getMethodList() %}
|
|
<option value="{{ key }}" {% if edit.getValue('sActionSendPushNotification_method') == key %}selected="selected"{% endif %}>{{ translation }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_USERMANAGER_ACTION_ORDERSENDPUSHNOTIFICATION_DESC"), 'sHelpText': help_text("D3_USERMANAGER_ACTION_ORDERSENDPUSHNOTIFICATION_DESC")} %}
|
|
{% endblock %}
|
|
{% else %}
|
|
{% block usermanager_admin_action_sendpushnotification_viewer %}
|
|
{{ translate({ ident: "D3_USERMANAGER_ACTION_USERSENDPUSHNOTIFICATION_URL" }) }} {{ edit.getValue('sActionSendPushNotification_url') }}<br>
|
|
{{ translate({ ident: "D3_USERMANAGER_ACTION_USERSENDPUSHNOTIFICATION_METHOD" }) }} {{ edit.getValue('sActionSendPushNotification_method') }}
|
|
{% endblock %}
|
|
{% endif %}
|
|
</dd>
|
|
<div class="spacer"></div>
|
|
</dl>
|
|
{% endblock %}
|