a555feaed142eed189037c24215320bca7c0bf2b
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Configuration / PageTS / modWizards.ts
1 mod.wizards {
2         newContentElement.wizardItems {
3                 forms {
4                         show :=addToList(mailform)
5                         elements {
6                                 mailform {
7                                         iconIdentifier = content-elements-mailform
8                                         title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_title
9                                         description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_description
10                                         tt_content_defValues {
11                                                 CType = mailform
12                                                 bodytext (
13 enctype = multipart/form-data
14 method = post
15 prefix = tx_form
16                                                 )
17                                         }
18                                 }
19                         }
20                 }
21         }
22
23         form {
24                 defaults {
25                         showTabs = elements, options, form
26                         tabs {
27                                 elements {
28                                         showAccordions = basic, predefined, content
29                                         accordions {
30                                                 basic {
31                                                         showButtons = textline, textarea, checkbox, radio, select, fileupload, hidden, password, fieldset, submit, reset, button
32                                                 }
33                                                 predefined {
34                                                         showButtons = name, email, checkboxgroup, radiogroup
35                                                 }
36                                                 content {
37                                                         showButtons = header, textblock
38                                                 }
39                                         }
40                                 }
41
42                                 options {
43                                         showAccordions = legend, label, attributes, options, validation, filters, various
44                                         accordions {
45                                                 label {
46                                                         showProperties = label
47                                                 }
48                                                 attributes {
49                                                         showProperties = accept, accept-charset, accesskey, action, alt, autocomplete, autofocus, checked, class, cols, contenteditable, contextmenu, dir, draggable, dropzone, disabled, enctype, hidden, height, id, inputmode, label, lang, list, max, maxlength, method, min, minlength, multiple, name, novalidate, pattern, placeholder, readonly, required, rows, selected, selectionDirection, selectionEnd, selectionStart, size, spellcheck, src, step, style, tabindex, title, translate, type, value, width, wrap
50                                                 }
51                                                 validation {
52                                                         showRules = alphabetic, alphanumeric, between, date, digit, email, equals, fileallowedtypes, filemaximumsize, fileminimumsize, float, greaterthan, inarray, integer, ip, length, lessthan, regexp, required, uri
53
54                                                         rules {
55                                                                 alphabetic {
56                                                                         showProperties = message, error, breakOnError, showMessage, allowWhiteSpace
57                                                                 }
58
59                                                                 alphanumeric {
60                                                                         showProperties = message, error, breakOnError, showMessage, allowWhiteSpace
61                                                                 }
62
63                                                                 between {
64                                                                         showProperties = message, error, breakOnError, showMessage, minimum, maximum, inclusive
65                                                                 }
66
67                                                                 date {
68                                                                         showProperties = message, error, breakOnError, showMessage, format
69                                                                 }
70
71                                                                 digit {
72                                                                         showProperties = message, error, breakOnError, showMessage
73                                                                 }
74
75                                                                 email {
76                                                                         showProperties = message, error, breakOnError, showMessage
77                                                                 }
78
79                                                                 equals {
80                                                                         showProperties = message, error, breakOnError, showMessage, field
81                                                                 }
82
83                                                                 fileallowedtypes {
84                                                                         showProperties = message, error, breakOnError, showMessage, types
85                                                                 }
86
87                                                                 filemaximumsize {
88                                                                         showProperties = message, error, breakOnError, showMessage, maximum
89                                                                 }
90
91                                                                 fileminimumsize {
92                                                                         showProperties = message, error, breakOnError, showMessage, minimum
93                                                                 }
94
95                                                                 float {
96                                                                         showProperties = message, error, breakOnError, showMessage
97                                                                 }
98
99                                                                 greaterthan {
100                                                                         showProperties = message, error, breakOnError, showMessage, minimum
101                                                                 }
102
103                                                                 inarray {
104                                                                         showProperties = message, error, breakOnError, showMessage, array, strict
105                                                                 }
106
107                                                                 integer {
108                                                                         showProperties = message, error, breakOnError, showMessage
109                                                                 }
110
111                                                                 ip {
112                                                                         showProperties = message, error, breakOnError, showMessage
113                                                                 }
114
115                                                                 length {
116                                                                         showProperties = message, error, breakOnError, showMessage, minimum, maximum
117                                                                 }
118
119                                                                 lessthan {
120                                                                         showProperties = message, error, breakOnError, showMessage, maximum
121                                                                 }
122
123                                                                 regexp {
124                                                                         showProperties = message, error, breakOnError, showMessage, expression
125                                                                 }
126
127                                                                 required {
128                                                                         showProperties = message, error, breakOnError, showMessage
129                                                                 }
130
131                                                                 uri {
132                                                                         showProperties = message, error, breakOnError, showMessage
133                                                                 }
134                                                         }
135                                                 }
136                                                 filtering {
137                                                         showFilters = alphabetic, alphanumeric, currency, digit, integer, lowercase, regexp, removexss, stripnewlines, titlecase, trim, uppercase
138
139                                                         filters {
140                                                                 alphabetic {
141                                                                         showProperties = allowWhiteSpace
142                                                                 }
143
144                                                                 alphanumeric {
145                                                                         showProperties = allowWhiteSpace
146                                                                 }
147
148                                                                 currency {
149                                                                         showProperties = decimalPoint, thousandSeparator
150                                                                 }
151
152                                                                 digit {
153                                                                         showProperties =
154                                                                 }
155
156                                                                 integer {
157                                                                         showProperties =
158                                                                 }
159
160                                                                 lowercase {
161                                                                         showProperties =
162                                                                 }
163
164                                                                 regexp {
165                                                                         showProperties = expression
166                                                                 }
167
168                                                                 removexss {
169                                                                         showProperties =
170                                                                 }
171
172                                                                 stripnewlines {
173                                                                         showProperties =
174                                                                 }
175
176                                                                 titlecase {
177                                                                         showProperties =
178                                                                 }
179
180                                                                 trim {
181                                                                         showProperties = characterList
182                                                                 }
183
184                                                                 uppercase {
185                                                                         showProperties =
186                                                                 }
187                                                         }
188                                                 }
189                                         }
190                                 }
191
192                                 form {
193                                         showAccordions = behaviour, prefix, attributes, postProcessor
194                                         accordions {
195                                                 postProcessor {
196                                                         showPostProcessors = mail, redirect
197                                                         postProcessors {
198                                                                 mail {
199                                                                         showProperties = recipientEmail, senderEmail, subject
200                                                                 }
201                                                                 redirect {
202                                                                         showProperties = destination
203                                                                 }
204                                                         }
205                                                 }
206                                         }
207                                 }
208                         }
209                 }
210
211                 elements {
212                         form {
213                                 accordions {
214                                         attributes {
215                                                 showProperties = accept, action, dir, enctype, lang, method, novalidate, class, id, style, title
216                                         }
217                                 }
218                         }
219
220                         button {
221                                 showAccordions = label, attributes
222                                 accordions {
223                                         attributes {
224                                                 showProperties = name, value, class, id
225                                         }
226                                 }
227                         }
228
229                         checkbox {
230                                 showAccordions = label, attributes, validation
231                                 accordions {
232                                         attributes {
233                                                 showProperties = name, value, class, id, checked, required
234                                         }
235                                         validation {
236                                                 showRules = required
237                                         }
238                                 }
239                         }
240
241                         fieldset {
242                                 showAccordions = legend, attributes
243                                 accordions {
244                                         attributes {
245                                                 showProperties = class, id
246                                         }
247                                 }
248                         }
249
250                         fileupload {
251                                 showAccordions = label, attributes, validation
252                                 accordions {
253                                         attributes {
254                                                 showProperties = name, class, id, required
255                                         }
256                                         validation {
257                                                 showRules = required, fileallowedtypes, filemaximumsize, fileminimumsize
258                                         }
259                                 }
260                         }
261
262                         hidden {
263                                 showAccordions = attributes
264                                 accordions {
265                                         attributes {
266                                                 showProperties = name, value
267                                         }
268                                 }
269                         }
270
271                         password {
272                                 showAccordions = label, attributes, validation
273                                 accordions {
274                                         attributes {
275                                                 showProperties = name, placeholder, class, id, autocomplete, required
276                                         }
277                                         validation {
278                                                 showRules = required, equals
279                                         }
280                                 }
281                         }
282
283                         radio < .checkbox
284
285                         reset < .button
286                         reset {
287                                 accordions {
288                                         attributes {
289                                                 showProperties := removeFromList(name)
290                                         }
291                                 }
292                         }
293
294                         select {
295                                 showAccordions = label, attributes, options, validation
296                                 accordions {
297                                         attributes {
298                                                 showProperties = name, size, class, id, multiple, required
299                                         }
300                                         validation {
301                                                 showRules = required
302                                         }
303                                 }
304                         }
305
306                         submit < .button
307                         submit {
308                                 accordions {
309                                         attributes {
310                                                 showProperties := removeFromList(name)
311                                         }
312                                 }
313                         }
314
315                         textarea {
316                                 showAccordions = label, attributes, validation, filters
317                                 accordions {
318                                         attributes {
319                                                 showProperties = name, placeholder, cols, rows, class, id, required
320                                         }
321                                         filtering {
322                                                 showFilters = alphabetic, alphanumeric, lowercase, regexp, stripnewlines, titlecase, trim, uppercase
323                                         }
324                                         validation {
325                                                 showRules = alphabetic, alphanumeric, length, regexp, required
326                                         }
327                                 }
328                         }
329
330                         textline {
331                                 showAccordions = label, attributes, validation, filters
332                                 accordions {
333                                         attributes {
334                                                 showProperties = name, placeholder, type, class, id, autocomplete, required
335                                         }
336                                         validation {
337                                                 showRules = alphabetic, alphanumeric, between, date, digit, email, equals, float, greaterthan, inarray, integer, ip, length, lessthan, regexp, required, uri
338                                         }
339                                         filtering {
340                                                 showFilters = alphabetic, alphanumeric, currency, digit, integer, lowercase, regexp, titlecase, trim, uppercase
341                                         }
342                                 }
343                         }
344
345                         name {
346                                 showAccordions = legend, various
347                         }
348
349                         email < .textline
350
351                         checkboxgroup {
352                                 showAccordions = legend, options, various, validation
353                                 accordions {
354                                         validation {
355                                                 showRules = required
356                                         }
357                                 }
358                         }
359
360                         radiogroup < .checkboxgroup
361
362                         header {
363                                 showAccordions = various
364                         }
365
366                         textblock {
367                                 showAccordions = various
368                         }
369                 }
370         }
371 }