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
|
# File 'app/models/page.rb', line 11
def self.sexhy
{
:properties => {
:name => {
:input => :text_field,
:label => 'Nom',
:order => 1
},
:description => {
:input => :text_area,
:label => 'Description',
:order => 2
},
:content => {
:input => :text_area,
:label => 'Contenu',
:order => 3
},
},
:html => {
:input => {
:tag => :p,
:attributes => {
:class => 'sexhy_p'
},
},
:label => {
:tag => :label,
:attributes => {
:class => 'sexhy_label',
},
},
},
}
end
|