5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/forms/interface/forms.rb', line 5
def self.included(base)
base.class_eval do
attr_accessor :form
alias_method :forms, :form
protected
def load_default_form_regions
returning OpenStruct.new do |form|
form.edit = Radiant::AdminUI::RegionSet.new do |edit|
edit.main.concat %w{form}
edit.form.concat %w{inputs meta parts foot}
edit..concat %w{buttons timestamp}
end
form.new = form.edit
form.index = Radiant::AdminUI::RegionSet.new do |index|
index.body.concat %w{icon title modify}
index..concat %w{buttons pagination}
end
end
end
end
end
|