[TASK] Remove old language labels in EXT:setup
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Documentation / Tests / Attributes / optgroup.txt
1 form.attributes.optgroup = FORM
2 form.attributes.optgroup {
3         method = post
4
5         # Basics
6         10 = FIELDSET
7         10 {
8                 legend = Basics, already shows label
9                 10 = SELECT
10                 10 {
11                         1 = OPTGROUP
12                         1 {
13                                 label = Option Group 1
14                                 1 = OPTION
15                                 1 {
16                                         data = optgroup 1 option 1
17                                 }
18                                 2 = OPTION
19                                 2 {
20                                         data = optgroup 1 option 2
21                                 }
22                         }
23                         2 = OPTGROUP
24                         2 {
25                                 label = Option Group 2
26                                 1 = OPTION
27                                 1 {
28                                         data = optgroup 2 option 1
29                                 }
30                                 2 = OPTION
31                                 2 {
32                                         data = optgroup 2 option 2
33                                 }
34                         }
35                 }
36         }
37
38         # Class
39         20 = FIELDSET
40         20 {
41                 legend = Class
42                 10 = SELECT
43                 10 {
44                         1 = OPTGROUP
45                         1 {
46                                 label = Single Class
47                                 class = singleClass
48                                 1 = OPTION
49                                 1 {
50                                         data = optgroup 1 option 1
51                                 }
52                         }
53                         2 = OPTGROUP
54                         2 {
55                                 label = Multiple classes
56                                 class = class1 class2
57                                 1 = OPTION
58                                 1 {
59                                         data = optgroup 2 option 1
60                                 }
61                         }
62                 }
63         }
64
65         # Disabled
66         30 = FIELDSET
67         30 {
68                 legend = Disabled
69                 10 = SELECT
70                 10 {
71                         1 = OPTGROUP
72                         1 {
73                                 label = disabled=1
74                                 disabled = 1
75                                 1 = OPTION
76                                 1 {
77                                         data = optgroup 1 option 1
78                                 }
79                         }
80                         2 = OPTGROUP
81                         2 {
82                                 label = disabled=0
83                                 disabled = 0
84                                 1 = OPTION
85                                 1 {
86                                         data = optgroup 2 option 1
87                                 }
88                         }
89                         3 = OPTGROUP
90                         3 {
91                                 label = disabled=disabled
92                                 disabled = disabled
93                                 1 = OPTION
94                                 1 {
95                                         data = optgroup 3 option 1
96                                 }
97                         }
98                 }
99         }
100
101         # Id
102         40 = FIELDSET
103         40 {
104                 legend = Id
105                 10 = SELECT
106                 10 {
107                         1 = OPTGROUP
108                         1 {
109                                 label = Option group 1
110                                 id = optgroup1
111                                 1 = OPTION
112                                 1 {
113                                         data = optgroup 1 option 1
114                                 }
115                         }
116                 }
117         }
118
119         # Lang
120         50 = FIELDSET
121         50 {
122                 legend = Lang
123                 10 = SELECT
124                 10 {
125                         1 = OPTGROUP
126                         1 {
127                                 label = has Lang
128                                 lang = en-US
129                                 1 = OPTION
130                                 1 {
131                                         data = optgroup 1 option 1
132                                 }
133                         }
134                 }
135         }
136
137         # Style
138         60 = FIELDSET
139         60 {
140                 legend = Style
141                 10 = SELECT
142                 10 {
143                         1 = OPTGROUP
144                         1 {
145                                 label = has Style
146                                 style = background-color: red;
147                                 1 = OPTION
148                                 1 {
149                                         data = optgroup 1 option 1
150                                 }
151                         }
152                 }
153         }
154
155         # Title
156         70 = FIELDSET
157         70 {
158                 legend = Title
159                 10 = SELECT
160                 10 {
161                         1 = OPTGROUP
162                         1 {
163                                 label = has Title
164                                 title = This is the OPTGROUP title
165                                 1 = OPTION
166                                 1 {
167                                         data = optgroup 1 option 1
168                                 }
169                         }
170                 }
171         }
172 }