{# /** * Copyright (C) 2024 Xibo Signage Ltd * * Xibo - Digital Signage - https://xibosignage.com * * This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see . */ #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% trans "Edit User Group" %} {% endblock %} {% block formButtons %} {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#userGroupEditForm").submit() {% endblock %} {% block callBack %}userGroupFormOpen{% endblock %} {% block formHtml %}
{% set title %}{% trans "Name" %}{% endset %} {% set helpText %}{% trans "The Name for this User Group" %}{% endset %} {{ forms.input("group", title, group.group, 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 %}
{{ helpText }}
{% if currentUser.userTypeId == 1 %}
{{ "Notification Type"|trans }} {% trans "Enabled?" %}
{{ "System"|trans }}
{{ "Should members of this Group receive Layout notification emails?"|trans }}
{{ "Display"|trans }}
{{ "Should members of this Group receive Display notifications for Displays they have permission to see?"|trans }}
{{ "DataSet"|trans }}
{{ "Should members of this Group receive DataSet notification emails?"|trans }}
{{ "Layout"|trans }}
{{ "Should members of this Group receive Layout notification emails?"|trans }}
{{ "Library"|trans }}
{{ "Should members of this Group receive Library notification emails?"|trans }}
{{ "Reports"|trans }}
{{ "Should members of this Group receive Report notification emails?"|trans }}
{{ "Schedule"|trans }}
{{ "Should members of this Group receive Schedule notification emails?"|trans }}
{{ "Custom"|trans }}
{{ "Should members of this Group receive notifications emails for Notifications manually created in CMS?"|trans }}
{% endif %}
{% set title %}{% trans "Description" %}{% endset %} {% set helpText %}{% trans "An optional description of the user group. (1 - 500 characters)" %}{% endset %} {{ forms.textarea("description", title, group.description, 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, group.isShownForAddUser, 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 %}
{% endblock %}