{% set message %}{% trans "This module no longer functions as originally designed due to a 3rd party unannounced change and will be removed in 1.9. Please replace this Widget with either Stocks or Currencies." %}{% endset %}
{{ forms.message(message, "alert alert-danger") }}
{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "An optional name for this widget" %}{% endset %}
{{ forms.input("name", title, "", helpText) }}
{% set title %}{% trans "Set a duration?" %}{% endset %}
{% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
{{ forms.checkbox("useDuration", title, 0, helpText) }}
{% set title %}{% trans "Duration" %}{% endset %}
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
{{ forms.number("duration", title, module.getModule().defaultDuration, helpText, "duration-fields", "required") }}
{% set title %}{% trans "Template" %}{% endset %}
{% set helpText %}{% trans "Select the template you would like to apply. This can be overridden using the check box below." %}{% endset %}
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId"), module.templatesAvailable(),"id", "value", helptext, "template-selector-control") }}
{% set title %}{% trans "Override the template?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to override the template." %}{% endset %}
{{ forms.checkbox("overrideTemplate", title, module.getOption("overrideTemplate", 0), helpText) }}
{% set title %}{% trans "Query" %}{% endset %}
{% set helpText %}{% trans "The YQL query to use for data" %}{% endset %}
{{ forms.input("yql", title, "", helpText, "template-override-controls", "required") }}
{% set title %}{% trans "Item" %}{% endset %}
{% set helpText %}{% trans "The item wanted, can be comma separated." %}{% endset %}
{{ forms.input("item", title, "", helpText, "", "required") }}
{% set title %}{% trans "Result Identifier" %}{% endset %}
{% set helpText %}{% trans "The name of the result identifier returned by the YQL" %}{% endset %}
{{ forms.input("resultIdentifier", title, "", helpText, "template-override-controls", "required") }}
{% set helpText %}{% trans "Enter the template. Please note that the background colour has automatically coloured to your layout background colour." %}{% endset %}
{{ forms.textarea("ta_text", "", "", helpText, "template-override-controls", "", 10) }}
{% set title %}{% trans "Optional Stylesheet" %}{% endset %}
{{ forms.textarea("ta_css", "", "", title, "template-override-controls", "", 10) }}
{% set title %}{% trans "Effect" %}{% endset %}
{% set helpText %}{% trans "Please select the effect that will be used to transition between items. If all items should be output, select None. Marquee effects are CPU intensive and may not be suitable for lower power displays." %}{% endset %}
{% set noneOption %}{% trans "None" %}{% endset %}
{% set fade %}{% trans "Fade" %}{% endset %}
{% set fadeout %}{% trans "Fade Out" %}{% endset %}
{% set scrollHorz %}{% trans "Scroll Horizontal" %}{% endset %}
{% set scrollVert %}{% trans "Scroll Vertical" %}{% endset %}
{% set flipHorz %}{% trans "Flip Horizontal" %}{% endset %}
{% set flipVert %}{% trans "Flip Vertical" %}{% endset %}
{% set shuffle %}{% trans "Shuffle" %}{% endset %}
{% set tileSlide %}{% trans "Tile Slide" %}{% endset %}
{% set tileBlind %}{% trans "Tile Blind" %}{% endset %}
{% set marqueeLeft %}{% trans "Marquee Left" %}{% endset %}
{% set marqueeRight %}{% trans "Marquee Right" %}{% endset %}
{% set marqueeUp %}{% trans "Marquee Up" %}{% endset %}
{% set marqueeDown %}{% trans "Marquee Down" %}{% endset %}
{% set options = [
{ effectid: "none", effect: noneOption },
{ effectid: "fade", effect: fade },
{ effectid: "fadeout", effect: fadeout},
{ effectid: "scrollHorz", effect: scrollHorz},
{ effectid: "scrollVert", effect: scrollVert},
{ effectid: "flipHorz", effect: flipHorz},
{ effectid: "flipVert", effect: flipVert},
{ effectid: "shuffle", effect: shuffle},
{ effectid: "tileSlide", effect: tileSlide},
{ effectid: "tileBlind", effect: tileBlind},
{ effectid: "marqueeLeft", effect: marqueeLeft},
{ effectid: "marqueeRight", effect: marqueeRight},
{ effectid: "marqueeUp", effect: marqueeUp},
{ effectid: "marqueeDown", effect: marqueeDown}
] %}
{{ forms.dropdown("effect", "single", title, module.getOption("effect"), options, "effectid", "effect", helpText) }}
{% set title %}{% trans "Speed" %}{% endset %}
{% set helpText %}{% trans "The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1)." %}{% endset %}
{{ forms.number("speed", title, "", helpText, "effect-controls") }}
{% set title %}{% trans "Duration is per item" %}{% endset %}
{% set helpText %}{% trans "The duration specified is per item otherwise it is per feed." %}{% endset %}
{{ forms.checkbox("durationIsPerItem", title, 1, helpText) }}
{% set title %}{% trans "Background Colour" %}{% endset %}
{% set helpText %}{% trans "The selected effect works best with a background colour. Optionally add one here." %}{% endset %}
{{ forms.input("backgroundColor", title, "", helpText, "background-color-group") }}
{% set title %}{% trans "No records" %}{% endset %}
{% set helpText %}{% trans "A message to display when there are no records returned by the search query" %}{% endset %}
{{ forms.input("noRecordsMessage", title, "", helpText) }}
{% set title %}{% trans "Date Format" %}{% endset %}
{% set helpText %}{% trans "The format to apply to all dates in PHP date format: http://uk3.php.net/manual/en/function.date.php" %}{% endset %}
{{ forms.input("dateFormat", title, "d M", helpText) }}
{% set title %}{% trans "Update Interval (mins)" %}{% endset %}
{% set helpText %}{% trans "Please enter the update interval in minutes. This should be kept as high as possible. For example, if the data will only change once per hour this could be set to 60." %}{% endset %}
{{ forms.number("updateInterval", title, 60, helpText, "", "required") }}
{% set title %}{% trans "Optional JavaScript" %}{% endset %}
{{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), title, "", "", 10) }}