{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "The Name for this User Group" %}{% endset %}
{{ forms.input("group", title, "", helpText, "", "required maxlength='50'") }}
{% set title %}{% trans "Library Quota" %}{% endset %}
{% set helpText %}{% trans "The quota that should be applied. Enter 0 for no quota." %}{% endset %}
{% if currentUser.userTypeId == 1 %}
{% set title %}{% trans "Receive System Notifications?" %}{% endset %}
{% set helpText %}{% trans "Should members of this Group receive system notifications?" %}{% endset %}
{{ forms.checkbox("isSystemNotification", title, 0, helpText) }}
{% set title %}{% trans "Receive Display Notifications?" %}{% endset %}
{% set helpText %}{% trans "Should members of this Group receive Display notifications for Displays they have permission to see?" %}{% endset %}
{{ forms.checkbox("isDisplayNotification", title, 0, helpText) }}
{% endif %}
{% set title %}{% trans "Description" %}{% endset %}
{% set helpText %}{% trans "An optional description of the user group. (1 - 500 characters)" %}{% endset %}
{{ forms.textarea("description", title, "", helpText, "", "", 15) }}
{% if currentUser.userTypeId == 1 %}
{% set title %}{% trans "Show when onboarding a new user?" %}{% endset %}
{% set helpText %}{% trans "Should this User Group be available for selection when creating a New User via the onboarding form?" %}{% endset %}
{{ forms.checkbox("isShownForAddUser", title, 0, helpText) }}
{% set title %}{% trans "Default Homepage" %}{% endset %}
{% set helpText %}{% trans "Default Homepage for users created with this group." %}{% endset %}
{% set homepagesUrl %}{{ url_for("user.homepages.search") }}?userTypeId=1{% endset %}
{% set attributes = [
{ name: "data-live-search", value: "true" },
{ name: "data-allow-clear", value: "true" },
{ name: "data-placeholder--id", value: null },
{ name: "data-placeholder--value", value: "" },
{ name: "data-search-url", value: homepagesUrl },
{ name: "data-search-term", value: "homepage" },
{ name: "data-id-property", value: "homepage" },
{ name: "data-text-property", value: "title" },
{ name: "data-initial-key", value: "homepage" },
{ name: "data-initial-value", value: group.defaultHomepageId }
] %}
{{ forms.dropdown("defaultHomepageId", "single", title, "", null, "homepage", "title", helpText, "pagedSelect", "", "", "", attributes) }}
{% endif %}