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/dataset-column-form-add.twig
{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015 Spring Signage Ltd
 * (${FILE_NAME})
 */
#}

{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% trans "Add Column" %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
    {% trans "Cancel" %}, XiboDialogClose()
    {% trans "Save" %}, $("#dataSetColumnAddForm").submit()    
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <form id="dataSetColumnAddForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("dataSet.column.add", {id: dataSet.dataSetId}) }}">
                    {% set title %}{% trans "Heading" %}{% endset %}
                    {% set helpText %}{% trans "The heading for this Column" %}{% endset %}
                    {{ forms.input("heading", title, "", helpText, "", "required") }}

                    {% set title %}{% trans "Column Type" %}{% endset %}
                    {% set helpText %}{% trans "Whether this column is a value or a formula" %}{% endset %}
                    {{ forms.dropdown("dataSetColumnTypeId", "single", title, "", dataSetColumnTypes, "dataSetColumnTypeId", "dataSetColumnType", helpText) }}

                    {% set title %}{% trans "Data Type" %}{% endset %}
                    {% set helpText %}{% trans "The DataType of the Intended Data" %}{% endset %}
                    {{ forms.dropdown("dataTypeId", "single", title, "", dataTypes, "dataTypeId", "dataType", helpText) }}

                    {% set title %}{% trans "List Content" %}{% endset %}
                    {% set helpText %}{% trans "A comma separated list of items to present in a combo box" %}{% endset %}
                    {{ forms.input("listContent", title, "", helpText) }}

                    {% set title %}{% trans "Column Order" %}{% endset %}
                    {% set helpText %}{% trans "The order this column should be displayed in when entering data" %}{% endset %}
                    {{ forms.number("columnOrder", title, "", helpText) }}

                    {% set title %}{% trans "Formula" %}{% endset %}
                    {% set helpText %}{% trans "A formula to use as a calculation for formula column types" %}{% endset %}
                    {{ forms.input("formula", title, "", helpText) }}
            </form>
        </div>
    </div>
{% endblock %}