form.attributes.button = FORM
form.attributes.button {
method = post
# Label test
10 = FIELDSET
10 {
legend = Label test
10 = BUTTON
10 {
label = label
}
20 = BUTTON
20 {
label.value = label.value
}
30 = BUTTON
30 {
label = TEXT
label {
value = TEXT cObj
}
}
}
# Layout test
20 = FIELDSET
20 {
legend = Layout test
10 = BUTTON
10 {
label = label in front of input (default)
}
20 = BUTTON
20 {
layout (
)
label = label after input
}
30 = BUTTON
30 {
layout =
value = No label
}
}
# Accesskey
30 = FIELDSET
30 {
legend = Accesskey test
10 = BUTTON
10 {
label = This button has an accesskey
accesskey = a
}
}
# Alt
40 = FIELDSET
40 {
legend = Alt test
10 = BUTTON
10 {
label = This button has an alt attribute
alt = This is the alt attribute content
}
}
# Class
50 = FIELDSET
50 {
legend = Class test
10 = BUTTON
10 {
label = This button has a class attribute
class = classAtribute
}
20 = BUTTON
20 {
label = Multiple classes
class = class1 class2
}
}
# Dir
60 = FIELDSET
60 {
legend = Dir test
10 = BUTTON
10 {
label = Dir ltr
dir = ltr
}
20 = BUTTON
20 {
label = Dir rtl
dir = rtl
}
30 = BUTTON
30 {
label = Wrong input in dir
dir = abc
}
}
# Disabled
70 = FIELDSET
70 {
legend = Disabled test
10 = BUTTON
10 {
label = disabled=1
disabled = 1
}
20 = BUTTON
20 {
label = disabled=0
disabled = 0
}
30 = BUTTON
30 {
label = disabled=disabled
disabled = disabled
}
}
# Id
80 = FIELDSET
80 {
legend = Id test
10 = BUTTON
10 {
label = This button has an id attribute and the label a for attribute
id = buttonId
}
}
# Lang
90 = FIELDSET
90 {
legend = Lang test
10 = BUTTON
10 {
label = This button has a lang attribute
lang = en-US
}
}
# Name
100 = FIELDSET
100 {
legend = Name test
10 = BUTTON
10 {
label = This button has a name attribute
name = buttonName
}
}
# Style
110 = FIELDSET
110 {
legend = style test
10 = BUTTON
10 {
label = This button has a style attribute
style = border: 1px solid #000000
}
}
# Tabindex
120 = FIELDSET
120 {
legend = Tabindex test
10 = BUTTON
10 {
label = This button has a tabindex attribute
tabindex = 1
}
}
# Title
130 = FIELDSET
130 {
legend = Title test
10 = BUTTON
10 {
label = This button has a title attribute
title = This is the title text
}
}
# Value
140 = FIELDSET
140 {
legend = Value test
10 = BUTTON
10 {
label = This button has a value attribute
value = Don't you dare to push this button
}
}
}