HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/xibo/views/applications-page.twig
{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015 Spring Signage Ltd
 * (${FILE_NAME})
 */

#}
{% extends "authed.twig" %}
{% import "inline.twig" as inline %}

{% block actionMenu %}
    <ul class="nav nav-pills pull-right">
        <li class="btn btn-success btn-xs"><a class="XiboFormButton btns" title="{% trans "Add an Application" %}" href="{{ urlFor("application.add.form") }}"> <i class="fa fa-plus-circle" aria-hidden="true"></i> {% trans "Add Application" %}</a></li>
    </ul>
{% endblock %}


{% block pageContent %}
    <div class="widget">
        <div class="widget-title">{% trans "Applications" %}</div>
        <div class="widget-body">
            <div class="XiboGrid" id="{{ random() }}">
                <div class="XiboFilter">
                    <div class="FilterDiv" id="Filter">
                        <form class="form-inline">
                        </form>
                    </div>
                </div>
                <div class="XiboData">
                    <table id="applications" class="table table-striped">
                        <thead>
                            <tr>
                                <th>{% trans "Name" %}</th>
                                <th>{% trans "Owner" %}</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block javaScript %}
    <script type="text/javascript">
        var table = $("#applications").DataTable({ "language": dataTablesLanguage,
            serverSide: true, stateSave: true,
            filter: false,
            searchDelay: 3000,
            "order": [[ 0, "asc"]],
            ajax: "{{ urlFor("application.search") }}",
            "columns": [
                { "data": "name", "render": dataTableSpacingPreformatted },
                { "data": "owner" },
                {
                    "orderable": false,
                    "data": dataTableButtonsColumn
                }
            ]
        });

        table.on('draw', dataTableDraw);
        table.on('processing.dt', dataTableProcessing);
        
        function copyFromSecretInput() {
            // Initialize the tooltip.
            $('#copy-button').tooltip();



            $('#copy-button').bind('click', function() {
                
              var input = $('#clientSecret');
              
              // Select the input to copy 
              input.focus();
              input.select();
              
              // Try to copy to clipboard and give feedback
              try {
                var success = document.execCommand('copy');
                if (success) {
                  $('#copy-button').trigger('copied', ['Copied!']);
                } else {
                  $('#copy-button').trigger('copied', ['Could not copy']);
                }
              } catch (err) {
                $('#copy-button').trigger('copied', ['Could not copy']);
              }
              
              // Unselect the input
              input.blur();
            });

            // Handler for updating the tooltip message.
            $('#copy-button').bind('copied', function(event, message) {
              $(this).attr('title', message)
                  .tooltip('fixTitle')
                  .tooltip('show')
                  .attr('title', "Copy to Clipboard")
                  .tooltip('fixTitle');
            });
            
        }
    </script>
{% endblock %}