-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmpl_fieldwrap.html
371 lines (255 loc) · 16.2 KB
/
tmpl_fieldwrap.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
Powermail HTML Template for fieldwraps
--- GLOBAL MARKERS ---
###LABEL### Field label
###LABEL_NAME### "uid" + uid
###MANDATORY_SYMBOL### Symbol if mandatory field
###NAME### Field name
###DESCRIPTION### Field Description with wrap from constants
###VALUE### Standard-value
###CLASS### Field's class
###ID### Field's id
###SIZE### Field's size
###MULTIPLE### If multiple is allowed in select
###MAXLENGTH### Field's maximum length
###READONLY### Is this field readonly?
###POWERMAIL_FIELD_UID### UID of current field
###COLS### Rows for textarea
###ROWS### Cols for textarea
###ONFOCUS### includes eventhandlers like onFocus and onBlur
###ONCHANGE### includes eventhandlers for changing fields like select
###TABINDEX### Uses tabindex (automaticly or via constants)
###ACCESSKEY### Uses acceskeys if set in constants
###JS### Fields: Could be used in different powermail extensions to add eventhandler, etc...
###JS_INNER### Fields: Could be used in different powermail extensions to add eventhandler in the innerMarkerArray, etc... (radiobuttons, checkboxes, etc...)
###DIVJS### DIV arround Fields: Could be used in different powermail extensions to add eventhandler, etc...
###POWERMAIL_TARGET### Link to the same page (could be used for different javascripts, etc..)
###POWERMAIL_NAME### Form name (could be used for different javascripts, etc..)
###ALTERNATE### Will be filled with odd or with even
--- GENERAL MARKERS --
Displaying any value from pi1/locallang.xml: ###POWERMAIL_LOCALLANG_YOURFIELD### (Could be filled via locallang.xml or typoscript - see manual for details)
Displaying any value from typoscript: ###POWERMAIL_TYPOSCRIPT_YOURFIELD### (Could be filled via typoscript - see manual for details)
Fieldwrap for Text fields like <input type="text" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_TEXT### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="form-group has-feedback" ###DIVJS###>
<label for="###LABEL_NAME###" class="col-sm-2 control-label">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<div class="col-sm-10">
<input type="text" class="form-control" placeholder="###LABEL###" data-validate="###LABEL_NAME###" ###ONFOCUS######NAME######VALUE######ID######SIZE######MAXLENGTH######READONLY######TABINDEX######ACCESSKEY######JS###/>
<span class="fa fa-check form-control-feedback"></span>
<span class="fa fa-times form-control-feedback"></span>
</div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_TEXT### end -->
Fieldwrap for Textareas like <textarea>
Special markers:
###WRAP### Textwrapping for textarea
<!-- ###POWERMAIL_FIELDWRAP_HTML_TEXTAREA### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="form-group has-feedback"###DIVJS###>
<label class="col-sm-2 control-label" for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<div class="col-sm-10">
<textarea class="form-control" rows="5" placeholder="###LABEL###" ###NAME######ID######ROWS######COLS######WRAP######ONFOCUS######MAXLENGTH######READONLY######TABINDEX######ACCESSKEY######JS###>###VALUE###</textarea>
<span class="fa fa-check form-control-feedback"></span>
<span class="fa fa-times form-control-feedback"></span>
</div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_TEXTAREA### end -->
Fieldwrap for select fields (dropdown) like <select>
Special markers:
###SELECTED### Preselection
<!-- ###POWERMAIL_FIELDWRAP_HTML_SELECT### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_select tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<select ###NAME######ID######CLASS######ONCHANGE######ONFOCUS######SIZE######TABINDEX######ACCESSKEY######MULTIPLE######JS###>
<!-- ###CONTENT### -->
<!-- ###ITEM### -->
<option value="###VALUE###"###SELECTED######JS_INNER###>###LABEL###</option>
<!-- ###ITEM### -->
<!-- ###CONTENT### -->
</select>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_SELECT### end -->
Fieldwrap for checkboxen like <input type="checkbox" />
Special markers:
###CHECKED### Preselection
NEW HTML Template for checkboxes (uses hidden fields)
<!-- ###POWERMAIL_FIELDWRAP_HTML_CHECKJS### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_check tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<p class="tx_powermail_pi1_fieldwrap_html_checkbox_title">###LABEL_MAIN######DESCRIPTION######MANDATORY_SYMBOL###</p>
<!-- ###CONTENT### begin -->
<!-- ###ITEM### begin -->
<div class="powermail_check_inner powermail_check_inner_###LABEL_NAME###">
<label for="check_###LABEL_NAME###">###LABEL###</label>
<input type="checkbox" name="check_###LABEL_NAME###" onclick="checkbox('###LABEL_NAME###'); ###JS_INNER###" id="check_###LABEL_NAME###" ###CHECKED######CLASS######ACCESSKEY######TABINDEX###/>
<input type="hidden" ###VALUE### name="value_###LABEL_NAME###" />
<input type="hidden" ###ID######NAME######HIDDENVALUE###/>
</div>
<!-- ###ITEM### end -->
<!-- ###CONTENT### end -->
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_CHECKJS### end -->
OLD HTML Template for checkboxes (don't use hidden fields - just checkboxes)
<!-- ###POWERMAIL_FIELDWRAP_HTML_CHECK### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_check tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<p class="tx_powermail_pi1_fieldwrap_html_checkbox_title">###LABEL_MAIN######DESCRIPTION######MANDATORY_SYMBOL###</p>
<!-- ###CONTENT### begin -->
<!-- ###ITEM### begin -->
<div class="powermail_check_inner powermail_check_inner_###LABEL_NAME###">
<label for="###LABEL_NAME###">###LABEL###</label>
<input type="checkbox" ###NAME######VALUE######CLASS######ID######CHECKED######ACCESSKEY######TABINDEX######JS_INNER###/>
</div>
<!-- ###ITEM### end -->
<!-- ###CONTENT### end -->
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_CHECK### end -->
Fieldwrap for radiobuttons like <input type="radio" />
Special markers:
###CHECKED### Preselection
<!-- ###POWERMAIL_FIELDWRAP_HTML_RADIO### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_radio tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<p class="tx_powermail_pi1_fieldwrap_html_radio_title">###LABEL_MAIN######DESCRIPTION######MANDATORY_SYMBOL###</p>
<!--###CONTENT### begin -->
<!--###ITEM### begin-->
<div class="powermail_radio_inner powermail_radio_inner_###LABEL_NAME###">
<label for="###LABEL_NAME###">###LABEL###</label>
<input type="radio" ###NAME######VALUE######CLASS######ID######CHECKED######ACCESSKEY######TABINDEX######JS_INNER###/>
</div>
<!--###ITEM### end-->
<!--###CONTENT### end-->
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_RADIO### end -->
Fieldwrap for captcha request
Special markers:
###POWERMAIL_CAPTCHA_PICTURE### Captcha picture
###POWERMAIL_CAPTCHA_DESCRIPTION### Captcha description from backend
###POWERMAIL_CAPTCHA_PICTURERELOAD### Link to reload captcha (sr_freecap only)
###POWERMAIL_CAPTCHA_ACCESSIBLE### Link for audio (sr_freecap only)
<!-- ###POWERMAIL_FIELDWRAP_HTML_CAPTCHA### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_captcha tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<input type="text" value="" ###ONFOCUS######NAME######CLASS######ID######SIZE######MAXLENGTH######READONLY######TABINDEX######ACCESSKEY######JS###/>
###POWERMAIL_CAPTCHA_PICTURE###
###POWERMAIL_CAPTCHA_PICTURERELOAD###
###POWERMAIL_CAPTCHA_ACCESSIBLE###
<div class="tx_powermail_pi1_fieldwrap_html_captcha_description">###POWERMAIL_CAPTCHA_DESCRIPTION###</div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_CAPTCHA### end -->
<!-- ###POWERMAIL_FIELDWRAP_HTML_RECAPTCHA### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_captcha tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
###POWERMAIL_CAPTCHA_PICTURE###
<div class="tx_powermail_pi1_fieldwrap_html_captcha_description">###POWERMAIL_CAPTCHA_DESCRIPTION###</div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_RECAPTCHA### end -->
Fieldwrap for submit buttons like <input type="submit" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_SUBMIT### begin -->
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10" id="powermaildiv_uid###POWERMAIL_FIELD_UID###">
<button type="submit" class="btn btn-default">###LABEL###</button>
</div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_SUBMIT### end -->
Fieldwrap for reset buttons like <input type="reset" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_RESET### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_reset tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<input type="reset" ###VALUE######CLASS######TABINDEX######ACCESSKEY######JS###/>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_RESET### end -->
Fieldwrap for labels like "blabla"
<!-- ###POWERMAIL_FIELDWRAP_HTML_LABEL### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_label tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
###CONTENT###
###HIDDEN###
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_LABEL### end -->
Fieldwrap for pure html
<!-- ###POWERMAIL_FIELDWRAP_HTML_HTML### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_html tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
###CONTENT###
###HIDDEN###
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_HTML### end -->
Fieldwrap for page-contents
<!-- ###POWERMAIL_FIELDWRAP_HTML_CONTENT### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_content tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
###CONTENT###
###HIDDEN###
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_CONTENT### end -->
Fieldwrap for password fields like <input type="password" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_PASSWORD### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_password tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<input type="password" ###NAME######CLASS######ID######SIZE######ONFOCUS######MAXLENGTH######READONLY######TABINDEX######ACCESSKEY######JS###/>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_PASSWORD### end -->
Fieldwrap for file fields like <input type="file" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_FILE### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_file tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<input type="file" ###NAME######CLASS######ID######SIZE######TABINDEX######ACCESSKEY######JS###/>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_FILE### end -->
<!-- ###POWERMAIL_FIELDWRAP_HTML_FILE_LIST### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_file tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
###FILE###
<a href="###DELETEFILE_URL###"><img src="###DELETEFILE###" /></a>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_FILE_LIST### end -->
Fieldwrap for hidden fields like <input type="hidden" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_HIDDEN### begin -->
<input type="hidden" ###NAME######VALUE###/>
<!-- ###POWERMAIL_FIELDWRAP_HTML_HIDDEN### end -->
Fieldwrap for text fields with datetime help
<!-- ###POWERMAIL_FIELDWRAP_HTML_DATETIME### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_datetime tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
###FIELD###
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_DATETIME### end -->
Fieldwrap for text fields with date help
<!-- ###POWERMAIL_FIELDWRAP_HTML_DATE### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_date tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
###FIELD###
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_DATE### end -->
Fieldwrap for button fields like <input type="button" />
<!-- ###POWERMAIL_FIELDWRAP_HTML_BUTTON### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_button tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<input type="button" ###NAME######VALUE######TABINDEX######ACCESSKEY######JS###/>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_BUTTON### end -->
Fieldwrap for submitgraphic buttons like <input type="image" />
Special markers:
###SRC### imagesource
<!-- ###POWERMAIL_FIELDWRAP_HTML_SUBMITGRAPHIC### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_submitgraphic tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<input type="image" ###SRC######ALT######TABINDEX######ACCESSKEY######JS###/>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_SUBMITGRAPHIC### end -->
Fieldwrap for dropdown with countries <select>
Special markers:
###SELECTED### Preselection
<!-- ###POWERMAIL_FIELDWRAP_HTML_COUNTRYSELECT### begin -->
<div id="powermaildiv_uid###POWERMAIL_FIELD_UID###" class="tx_powermail_pi1_fieldwrap_html tx_powermail_pi1_fieldwrap_html_select tx_powermail_pi1_fieldwrap_html_###POWERMAIL_FIELD_UID### ###ALTERNATE###"###DIVJS###>
<label for="###LABEL_NAME###">###LABEL######DESCRIPTION######MANDATORY_SYMBOL###</label>
<select ###NAME######ID######CLASS######ONCHANGE######ONFOCUS######TABINDEX######ACCESSKEY######JS###>
<option value=""></option>
<!-- ###CONTENT### -->
<!-- ###ITEM### -->
<option value="###VALUE###"###SELECTED######JS_INNER###>###LONGVALUE###</option>
<!-- ###ITEM### -->
<!-- ###CONTENT### -->
</select>
<div id="powermail_countryzoneselect###POWERMAIL_FIELD_UID###" class="countryzone"></div>
</div>
<!-- ###POWERMAIL_FIELDWRAP_HTML_COUNTRYSELECT### end -->
<!-- ###POWERMAIL_FIELDWRAP_HTML_COUNTRYZONESELECT### begin -->
<select ###NAME######ID######CLASS######ONCHANGE######ONFOCUS######TABINDEX######ACCESSKEY######JS###>
<option value=""></option>
<!-- ###CONTENT### -->
<!-- ###ITEM### -->
<option value="###VALUE###"###SELECTED######JS_INNER###>###LONGVALUE###</option>
<!-- ###ITEM### -->
<!-- ###CONTENT### -->
</select>
<!-- ###POWERMAIL_FIELDWRAP_HTML_COUNTRYZONESELECT### end -->