{% set title %}{% trans "Subject" %}{% endset %}
{% set helpText %}{% trans "A subject line for the notification - used as a title." %}{% endset %}
{{ forms.input("subject", title, notification.subject, helpText, "", "required") }}
{% set title %}{% trans "Release Date" %}{% endset %}
{% set helpText %}{% trans "The date when this notification will be published" %}{% endset %}
{{ forms.dateTime("releaseDt", title, notification.releaseDt, helpText, "starttime-control", "required") }}
{% set title %}{% trans "Email?" %}{% endset %}
{% set helpText %}{% trans "Should the notification be emailed?" %}{% endset %}
{{ forms.checkBox("isEmail", title, notification.isEmail, helpText) }}
{% set title %}{% trans "Interrupt?" %}{% endset %}
{% set helpText %}{% trans "Should the notification interrupt nagivation in the Web Portal? Including Login." %}{% endset %}
{{ forms.checkBox("isInterrupt", title, notification.isInterrupt, helpText) }}
{% set title %}{% trans "Add the body of your message in the box below. If you are going to target this message to a Display/DisplayGroup be aware that the formatting you apply here will be removed." %}{% endset %}
{{ forms.message(title) }}
{{ forms.textarea("body", "", notification.body, "", "", 10) }}
{% set title %}{% trans "Users" %}{% endset %}
{% set helpText %}{% trans "Please select one or more users / groups who will receive this notification." %}{% endset %}
{% set attributes = [
{ name: "data-width", value: "100%" }
] %}
{% set transUserGroups %}{% trans "Groups" %}{% endset %}
{% set transUsers %}{% trans "Users" %}{% endset %}
{% set optionGroups = [
{id: "group", label: transUserGroups},
{id: "user", label: transUsers}
] %}
{{ forms.dropdown("userGroupIds[]", "dropdownmulti", title, userGroupIds, {group: userGroups, user: users}, "groupId", "group", helpText, "selectPicker", "", "", "", attributes, optionGroups) }}
{% set title %}{% trans "Non users" %}{% endset %}
{% set helpText %}{% trans "Additional emails separated by a comma." %}{% endset %}
{{ forms.inputWithTags("nonusers", title, notification.nonusers, helpText, "", "", "", false, "", "", "", "", 0) }}
{% set title %}{% trans "Displays" %}{% endset %}
{% set helpText %}{% trans "Please select one or more displays / groups for this notification to be shown on - Layouts will need the notification widget." %}{% endset %}
{% set attributes = [
{ name: "data-width", value: "100%" }
] %}
{% set transGroups %}{% trans "Groups" %}{% endset %}
{% set transDisplays %}{% trans "Display" %}{% endset %}
{% set optionGroups = [
{id: "group", label: transGroups},
{id: "display", label: transDisplays}
] %}
{{ forms.dropdown("displayGroupIds[]", "dropdownmulti", title, displayGroupIds, {group: displayGroups, display: displays}, "displayGroupId", "displayGroup", helpText, "selectPicker", "", "", "", attributes, optionGroups) }}