0byt3m1n1
Path:
/
home
/
mgatv524
/
atvcms.com.br
/
maisqtv2
/
views
/
[
Home
]
File: module-page.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 <http://www.gnu.org/licenses/>. */ #} {% extends "authed.twig" %} {% import "inline.twig" as inline %} {% block title %}{{ "Modules"|trans }} | {% endblock %} {% block actionMenu %} <div class="widget-action-menu pull-right"> {% if modulesToInstall|length > 0 %} <button class="btn btn-success XiboFormButton" title="{% trans "Modules available to Install" %}" href="{{ url_for("module.install.list.form") }}"><i class="fa fa-upload" aria-hidden="true"></i> {% trans "Install Module" %}</button> {% endif %} <button class="btn btn-info XiboFormButton" title="{% trans "Verify all modules have been installed correctly." %}" href="{{ url_for("module.verify.form") }}"><i class="fa fa-check-circle" aria-hidden="true"></i> {% trans "Verify All" %}</button> <button class="btn btn btn-secondary" id="refreshGrid" title="{% trans "Refresh" %}" href="#"><i class="fa fa-refresh" aria-hidden="true"></i> {% trans "Refresh" %}</button> </div> {% endblock %} {% block pageContent %} <div class="widget"> <div class="widget-title">{% trans "Modules" %}</div> <div class="widget-body"> <div class="XiboGrid" id="{{ random() }}"> <div class="XiboFilter"> <div class="FilterDiv card-body" id="Filter"> <form class="form-inline"> </form> </div> </div> <div class="XiboData card pt-3"> <table id="modules" class="table table-striped" data-state-preference-name="moduleGrid"> <thead> <tr> <th>{% trans "Name" %}</th> <th>{% trans "Description" %}</th> <th>{% trans "Library Media" %}</th> <th>{% trans "Default Duration" %}</th> <th>{% trans "Valid Extensions" %}</th> <th>{% trans "Preview Enabled" %}</th> <th title="{% trans "Can this module be assigned to a Layout?" %}">{% trans "Assignable" %}</th> <th>{% trans "Enabled" %}</th> <th class="rowMenu"></th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> {% endblock %} {% block javaScript %} <script type="text/javascript"> var table = $("#modules").DataTable({ "language": dataTablesLanguage, dom: dataTablesTemplate, serverSide: true, stateSave: true, stateDuration: 0, responsive: true, stateLoadCallback: dataTableStateLoadCallback, stateSaveCallback: dataTableStateSaveCallback, filter: false, searchDelay: 3000, "order": [[ 0, "asc"]], ajax: { "url": "{{ url_for("module.search") }}", "data": function(d) { $.extend(d, $("#modules").closest(".XiboGrid").find(".FilterDiv form").serializeObject()); } }, "columns": [ { "data": "name" , responsivePriority: 2}, { "data": "description" }, { "data": "regionSpecific", "render": dataTableTickCrossInverseColumn }, { "data": "defaultDuration" }, { "data": "validExtensions" }, { "data": "previewEnabled", "render": dataTableTickCrossColumn }, { "data": "assignable", "render": dataTableTickCrossColumn }, { "data": "enabled", "render": dataTableTickCrossColumn }, { "orderable": false, responsivePriority: 1, "data": dataTableButtonsColumn } ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); dataTableAddButtons(table, $('#modules_wrapper').find('.dataTables_buttons')); function installModuleComplete() { $("#moduleInstallForm").data("refresh", true); } $("#refreshGrid").click(function () { table.ajax.reload(); }); </script> {% endblock %}