芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/views/usergroup-form-acl.twig
{# /** * 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
. */ #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% import _self as flow %} {% block formTitle %} {% trans %}Turn Features on/off for {{ group }}{% endtrans %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help }}") {% trans "Cancel" %}, XiboDialogClose() {% trans "Save" %}, $("#AclForm").submit() {% endblock %} {% block callBack %}featureAclFormOpen{% endblock %} {% macro hasFeature(features, feature) %} {% if feature in features %} checked {% endif %} {% endmacro %} {% macro featureTitleRow(title, description, isUserSpecific) %}
{{ title }}
{{ description }}
{% if isUserSpecific == 1 %}
{% endif %}
{% endmacro %} {% macro featureRow(feature, title, features, inheritedFeatures, isUserSpecific) %}
{{ title }}
{% if isUserSpecific == 1 %}
{% endif %}
{% endmacro %} {% block formHtml %}
{% set helpText %}{% trans %}Check or un-check the options against each item to control whether access to a Feature is allowed or not.{% endtrans %}{% endset %} {{ forms.message(helpText) }}
{% trans "Content" %}
{% trans "Displays" %}
{% trans "Reports" %}
{% trans "Users" %}
{% trans "System" %}
{% trans "Custom" %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("Reporting"|trans, "Run reporting on a variety of different KPI's and metrics applicable to the Features enabled."|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("reporting") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("Folders"|trans, "Organise content sharing with Folders"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("folders") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Library"|trans, "Media Library that stores file based content for use in Layouts, DataSets and Playlists"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("library") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %} {% for customFeature in userGroupFactory.getFeaturesByGroup("playlist-design") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Layout Design"|trans, "Allow content creators to create Layouts - which hold the content you want to show on your Displays"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("layout-design") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Campaigns"|trans, "Ensure ordering by grouping Layouts into Campaigns"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("campaigns") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Tagging"|trans, "Organise and filter items by using Tags"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("tagging") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("Scheduling"|trans, "Create and manage Scheduled Events for Displays and Display Groups"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("scheduling") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Display Management"|trans, "Connect and manage Displays."|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("displays") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("User functions"|trans, "User profile preferences for the logged in User"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("users") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Notifications"|trans, "Notification Centre allows for users to to create/edit Notifications sent to other Users or used in Layouts"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("notifications") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("User Management"|trans, "Manage Users that can authenticate with the CMS. Create and organise them into User Groups to enable 'Group Features'"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("users-management") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Dashboards"|trans, "Dashboards bring together key features for Users"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("dashboards") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("Configuration"|trans, "Restricted high level access advised - potentially damaging system settings"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("system") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ flow.featureTitleRow("Troubleshooting"|trans, "Tools to diagnose problems when seeking help"|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("troubleshooting") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{{ "Feature"|trans }}
{% trans "Enabled?" %}
{% if isUserSpecific == 1 %}
{% trans "Inherited?" %}
{% endif %}
{{ flow.featureTitleRow("Custom"|trans, "Third party extensions to the platform."|trans, isUserSpecific) }} {% for customFeature in userGroupFactory.getFeaturesByGroup("custom") %} {{ flow.featureRow(customFeature.feature, customFeature.title, features, inheritedFeatures, isUserSpecific) }} {% endfor %}
{% endblock %}