~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to modules/twitter-form-add.twig

  • Committer: Dan Garner
  • Date: 2016-02-18 16:07:16 UTC
  • mfrom: (454.4.137)
  • Revision ID: git-v1:8867f12675bc9e0e67e7e622c80da7471b9f294a
Merge pull request #139 from dasgarner/feature/nested-display-groups

Feature/nested display groups

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
                        {{ forms.number("tweetDistance", title, "", helpText) }}
181
181
 
182
182
                        {% set title %}{% trans "Count" %}{% endset %}
183
 
                        {% set helpText %}{% trans "The number of Tweets to return (default = 15)." %}{% endset %}
 
183
                        {% set helpText %}{% trans "The number of Tweets to return." %}{% endset %}
184
184
                        {{ forms.number("tweetCount", title, "", helpText) }}
185
 
                        
186
 
                        {% set title %}{% trans "Tweets Per Page" %}{% endset %}
187
 
                        {% set helpText %}{% trans "The number of Tweets to show per page (default = 5)." %}{% endset %}
188
 
                        {{ forms.number("itemsPerPage", title, "", helpText) }}
189
185
                    </div>
190
186
 
191
187
                    <div class="tab-pane" id="template">
192
188
 
193
189
                        {% set title %}{% trans "Template" %}{% endset %}
194
190
                        {% set helpText %}{% trans "Select the template you would like to apply. This can be overridden using the check box below." %}{% endset %}
195
 
                        {{ forms.dropdown("templateId", "single", title, module.getOption("templateId", "tweet-only"), module.templatesAvailable(),"id", "value", helptext, "template-selector-control selectPicker selectPickerWithImage", null, null, null, null, null, baseUrl, "image") }}
 
191
                        {{ forms.dropdown("templateId", "single", title, module.getOption("templateId", "tweet-only"), module.templatesAvailable(),"id", "value", helptext, "template-selector-control") }}
196
192
 
197
193
                        {% set title %}{% trans "Override the template?" %}{% endset %}
198
194
                        {% set helpText %}{% trans "Tick if you would like to override the template." %}{% endset %}
199
195
                        {{ forms.checkbox("overrideTemplate", title, module.getOption("overrideTemplate", 0), helpText) }}
200
 
                        
201
 
                        {% set title %}{% trans "Original Width" %}{% endset %}
202
 
                        {% set helpText %}{% trans "This is the intended width of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
203
 
                        {{ forms.number("widgetOriginalWidth", title, module.getOption("widgetOriginalWidth", undefined), helpText, "template-override-controls", "", "number") }}
204
 
 
205
 
                        {% set title %}{% trans "Original Height" %}{% endset %}
206
 
                        {% set helpText %}{% trans "This is the intended height of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
207
 
                        {{ forms.number("widgetOriginalHeight", title, module.getOption("widgetOriginalHeight", undefined), helpText, "template-override-controls", "", "number") }}
208
 
 
209
 
                        {% set title %}{% trans "Original Padding" %}{% endset %}
210
 
                        {% set helpText %}{% trans "This is the intended padding of the template and is used to position the Widget within its region when the template is applied." %}{% endset %}
211
 
                        {{ forms.number("widgetOriginalPadding", title, module.getOption("widgetOriginalPadding", undefined), helpText, "template-override-controls", "", "number") }}
212
 
 
213
 
                        {% set title %}{% trans "Content Type" %}{% endset %}
214
 
                        {% set helpText %}{% trans "This is the intended tweet content type." %}{% endset %}
215
 
                        {% set allTweets %}{% trans "All Tweets" %}{% endset %}
216
 
                        {% set justText %}{% trans "Tweets with text only content" %}{% endset %}
217
 
                        {% set withImages %}{% trans "Tweets with text and image content" %}{% endset %}
218
 
                        {% set options = [
219
 
                        { contenttypeid: 0, type: allTweets },
220
 
                        { contenttypeid: 1, type: justText },
221
 
                        { contenttypeid: 2, type: withImages }
222
 
                        ] %}
223
 
                        {{ forms.dropdown("resultContent", "single", title, module.getOption("resultContent", 0), options, "contenttypeid", "type", helpText,"template-override-controls", "required") }}
224
196
 
225
197
                        {% set helpText %}{% trans "Enter the template. Please note that the background colour has automatically coloured to your layout background colour." %}{% endset %}
226
198
                        {{ forms.textarea("ta_text", "", "", helpText, "template-override-controls", "", 10) }}
234
206
                    <div class="tab-pane" id="effectTab">
235
207
 
236
208
                        {% set title %}{% trans "Effect" %}{% endset %}
237
 
                        {% set helpText %}{% trans "Please select the effect that will be used to transition between items." %}{% endset %}
 
209
                        {% 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 %}
238
210
                        {% set noneOption %}{% trans "None" %}{% endset %}
239
211
                        {% set fade %}{% trans "Fade" %}{% endset %}
240
212
                        {% set fadeout %}{% trans "Fade Out" %}{% endset %}
245
217
                        {% set shuffle %}{% trans "Shuffle" %}{% endset %}
246
218
                        {% set tileSlide %}{% trans "Tile Slide" %}{% endset %}
247
219
                        {% set tileBlind %}{% trans "Tile Blind" %}{% endset %}
 
220
                        {% set marqueeLeft %}{% trans "Marquee Left" %}{% endset %}
 
221
                        {% set marqueeRight %}{% trans "Marquee Right" %}{% endset %}
 
222
                        {% set marqueeUp %}{% trans "Marquee Up" %}{% endset %}
 
223
                        {% set marqueeDown %}{% trans "Marquee Down" %}{% endset %}
248
224
                        {% set options = [
249
 
                        { effectid: "noAnim", effect: noneOption },
 
225
                        { effectid: "none", effect: noneOption },
250
226
                        { effectid: "fade", effect: fade },
251
227
                        { effectid: "fadeout", effect: fadeout},
252
228
                        { effectid: "scrollHorz", effect: scrollHorz},
255
231
                        { effectid: "flipVert", effect: flipVert},
256
232
                        { effectid: "shuffle", effect: shuffle},
257
233
                        { effectid: "tileSlide", effect: tileSlide},
258
 
                        { effectid: "tileBlind", effect: tileBlind}
 
234
                        { effectid: "tileBlind", effect: tileBlind},
 
235
                        { effectid: "marqueeLeft", effect: marqueeLeft},
 
236
                        { effectid: "marqueeRight", effect: marqueeRight},
 
237
                        { effectid: "marqueeUp", effect: marqueeUp},
 
238
                        { effectid: "marqueeDown", effect: marqueeDown}
259
239
                        ] %}
260
240
                        {{ forms.dropdown("effect", "single", title, module.getOption("effect"), options, "effectid", "effect", helpText) }}
261
241
 
262
242
                        {% set title %}{% trans "Speed" %}{% endset %}
263
 
                        {% set helpText %}{% trans "The transition speed of the selected effect in milliseconds (normal = 1000)." %}{% endset %}
 
243
                        {% 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 %}
264
244
                        {{ forms.number("speed", title, "", helpText, "effect-controls") }}
265
245
                    </div>
266
246
 
267
247
                    <div class="tab-pane" id="advanced">
268
248
 
269
 
                        {% set title %}{% trans "Duration is per item" %}{% endset %}
270
 
                        {% set helpText %}{% trans "The duration specified is per item otherwise it is per feed." %}{% endset %}
271
 
                        {{ forms.checkbox("durationIsPerItem", title, 1, helpText) }}
272
 
 
273
249
                        {% set title %}{% trans "Background Colour" %}{% endset %}
274
250
                        {% set helpText %}{% trans "The selected effect works best with a background colour. Optionally add one here." %}{% endset %}
275
251
                        {{ forms.input("backgroundColor", title, "", helpText, "background-color-group") }}
282
258
                        {% set helpText %}{% trans "The format to apply to all dates returned by the ticker. In PHP date format: http://uk3.php.net/manual/en/function.date.php" %}{% endset %}
283
259
                        {{ forms.input("dateFormat", title, "d M", helpText) }}
284
260
 
285
 
                        {% set title %}{% trans "Remove Mentions?" %}{% endset %}
286
 
                        {% set helpText %}{% trans "Should mentions (@someone) be removed from the Tweet Text?" %}{% endset %}
287
 
                        {{ forms.checkbox("removeMentions", title, 0, helpText) }}
288
 
 
289
 
                        {% set title %}{% trans "Remove Hashtags?" %}{% endset %}
290
 
                        {% set helpText %}{% trans "Should Hashtags (#something) be removed from the Tweet Text?" %}{% endset %}
291
 
                        {{ forms.checkbox("removeHashtags", title, 0, helpText) }}
292
 
 
293
261
                        {% set title %}{% trans "Remove URLs?" %}{% endset %}
294
 
                        {% set helpText %}{% trans "Should URLs be removed from the Tweet Text? Most URLs do not compliment digital signage." %}{% endset %}
 
262
                        {% set helpText %}{% trans "Should URLs be removed from the Tweet Text. Most URLs do not compliment digital signage." %}{% endset %}
295
263
                        {{ forms.checkbox("removeUrls", title, 1, helpText) }}
296
264
 
297
265
                        {% set title %}{% trans "Update Interval (mins)" %}{% endset %}
298
266
                        {% 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 %}
299
267
                        {{ forms.number("updateInterval", title, 60, helpText, "", "required") }}
300
 
 
301
 
                        {% set title %}{% trans "Optional JavaScript" %}{% endset %}
302
 
                        {{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), title, "", "", 10) }}
303
268
                    </div>
304
269
                </div>
305
270
            </form>