{# /** * Copyright (C) 2020 Xibo Signage Ltd * * Xibo - Digital Signage - http://www.xibo.org.uk * * 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 . */ #} {% set randomId = random() %} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% import "inline.twig" as inline %} {% block formTitle %} {% set displayGroupName = displayGroup.displayGroup %} {% trans %}Manage Membership for {{ displayGroupName }}{% endtrans %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, displayGroupMembersFormSubmit("{{ randomId }}") {% endblock %} {% block callBack %}displayGroupMembersFormOpen{% endblock %} {% block extra %}{{ extra|json_encode|raw }}{% endblock %} {% block formHtml %}
{% set helpText %}{% trans %}Check or un-check the options against each display to control whether they are a member or not.{% endtrans %}{% endset %} {{ forms.message(helpText) }}
{% set title %}{% trans "Name" %}{% endset %} {{ inline.input("display", title) }} {% set title %}{% trans "Authorised" %}{% endset %} {% set values = [{id: -1, value: ""}, {id: 1, value: "Yes"}, {id: 0, value: "No"}] %} {{ inline.dropdown("authorised", "single", title, -1, values, "id", "value") }} {{ inline.hidden("displayGroupIdMembers", displayGroup.displayGroupId) }}
{% trans "ID" %} {% trans "Display" %} {% trans "Status" %} {% trans "Logged In" %} {% trans "Version" %} {% trans "Member" %}
{% set helpText %}{% trans %}Check or un-check the options against each display group to control whether they are a member or not.{% endtrans %}{% endset %} {{ forms.message(helpText) }}
{% set title %}{% trans "Name" %}{% endset %} {{ inline.input("displayGroup", title) }} {{ inline.hidden("displayGroupIdMembers", displayGroup.displayGroupId) }} {{ forms.hidden("isDynamic", 0) }}
{% trans "ID" %} {% trans "Display Group" %} {% trans "Member" %}
{% set helpText %}{% trans %}Below is the family tree for this Display Group.{% endtrans %}{% endset %} {{ forms.message(helpText) }} {% set helpText %}{% trans %}The Display Group being edited is in bold. The list is ordered so that items above the current Display Group are its ancestors and items below are its descendants.{% endtrans %}{% endset %} {{ forms.message(helpText) }}
    {% for group in tree %} {% if group.displayGroup == displayGroup.displayGroup %}
  • {{ group.displayGroup }}
  • {% else %}
  • {{ group.displayGroup }}
  • {% endif %} {% endfor %}
{% endblock %}