{% if currentUser.featureEnabled('folder.view') %}
{{ forms.hidden('folderId', campaign.folderId) }}
{% endif %}
{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "The Name for this Campaign" %}{% endset %}
{{ forms.input("name", title, campaign.campaign, helpText) }}
{% if currentUser.featureEnabled("tag.tagging") %}
{% set title %}{% trans "Tags" %}{% endset %}
{% set helpText %}{% trans "Tags for this Campaign - Comma separated string of Tags or Tag|Value format. If you choose a Tag that has associated values, they will be shown for selection below." %}{% endset %}
{{ forms.inputWithTags("tags", title, campaign.tags, helpText, 'tags-with-value') }}
{% set title %}{% trans "Tag value" %}{% endset %}
{{ forms.dropdown("tagValue", "single", title, "", options, "key", "value") }}
{% set title %}{% trans "Tag value" %}{% endset %}
{% set helpText %}{% trans "Please provide the value for this Tag and confirm by pressing enter on your keyboard." %}{% endset %}
{{ forms.input("tagValueInput", title, "", helpText) }}
{% trans "This tag requires a set value, please select one from the Tag value dropdown or provide Tag value in the dedicated field." %}
{% endif %}
{% set title %}{% trans "Enable cycle based playback" %}{% endset %}
{% set helpText %}{% trans "When cycle based playback is enabled only 1 Layout from this Campaign will be played each time it is in a Schedule loop. The same Layout will be shown until the 'Play count' is achieved." %}{% endset %}
{{ forms.checkbox("cyclePlaybackEnabled", title, campaign.cyclePlaybackEnabled, helpText, "campaign-type-list", null, false, "input-cycle-playback-enabled") }}
{% set title %}{% trans "Play count" %}{% endset %}
{% set helpText %}{% trans "In cycle based playback, how many plays should each Layout have before moving on?" %}{% endset %}
{{ forms.number("playCount", title, campaign.playCount, helpText, "cycle-based-playback campaign-type-list") }}
{% set title %}{% trans "List play order" %}{% endset %}
{% set helpText %}{% trans "When this campaign is scheduled alongside another campaign with the same display order, how should the layouts in both campaigns be ordered?" %}{% endset %}
{% set options = [
{ id: "round", name: "Round-robin"|trans },
{ id: "block", name: "Block"|trans },
] %}
{{ forms.dropdown("listPlayOrder", "single", title, campaign.listPlayOrder, options, "id", "name", helpText, "campaign-type-list") }}
{{ forms.message("Add reference fields if needed"|trans) }}
{% set title %}{% trans "Reference 1" %}{% endset %}
{{ forms.input("ref1", title, campaign.ref1, null) }}
{% set title %}{% trans "Reference 2" %}{% endset %}
{{ forms.input("ref2", title, campaign.ref2, null) }}
{% set title %}{% trans "Reference 3" %}{% endset %}
{{ forms.input("ref3", title, campaign.ref3, null) }}
{% set title %}{% trans "Reference 4" %}{% endset %}
{{ forms.input("ref4", title, campaign.ref4, null) }}
{% set title %}{% trans "Reference 5" %}{% endset %}
{{ forms.input("ref5", title, campaign.ref5, null) }}
{{ forms.hidden("manageLayouts", 0) }}
{% set title %}{% trans "Name" %}{% endset %}
{{ inline.input("layout", title) }}
{% if currentUser.featureEnabled("tag.tagging") %}
{% set title %}{% trans "Tags" %}{% endset %}
{% set exactTagTitle %}{% trans "Exact match?" %}{% endset %}
{% set logicalOperatorTitle %}{% trans "When filtering by multiple Tags, which logical operator should be used?" %}{% endset %}
{% set helpText %}{% trans "A comma separated list of tags to filter by. Enter --no-tag to see items without tags." %}{% endset %}
{{ inline.inputWithTags("tags", title, null, helpText, null, null, null, "exactTags", exactTagTitle, logicalOperatorTitle) }}
{% endif %}
{% trans "ID" %} |
{% trans "Name" %} |
{% trans "Status" %} |
|