Fixing edit node form field title and id.

This commit is contained in:
2015-08-10 12:49:40 +02:00
parent 479194d6c5
commit aff6b07c80

View File

@@ -37,11 +37,11 @@ feature -- Forms ...
-- Select field has to be initialized before textareas are replaced, because they depend on the selection of the field -- Select field has to be initialized before textareas are replaced, because they depend on the selection of the field
create tselect.make ("format") create tselect.make ("format")
tselect.set_label ("Body's format") tselect.set_label ("Format for content (and summary)")
tselect.set_is_required (True) tselect.set_is_required (True)
-- Main Content -- Main Content
create ta.make ("body") create ta.make ("content")
ta.set_rows (10) ta.set_rows (10)
ta.set_cols (70) ta.set_cols (70)
ta.show_as_editor_if_selected (tselect, cms_format.name) ta.show_as_editor_if_selected (tselect, cms_format.name)
@@ -66,13 +66,12 @@ feature -- Forms ...
sum.set_is_required (False) sum.set_is_required (False)
create fset.make create fset.make
fset.set_legend ("Body")
-- Add summary -- Add summary
fset.extend (sum) fset.extend (sum)
fset.extend_html_text("<br />") fset.extend_html_text("<br />")
-- Add content (body) -- Add content
fset.extend (ta) fset.extend (ta)
fset.extend_html_text ("<br/>") fset.extend_html_text ("<br/>")
@@ -165,8 +164,8 @@ feature -- Forms ...
a_node.set_title (l_title) a_node.set_title (l_title)
end end
if attached fd.string_item ("body") as l_body then if attached fd.string_item ("content") as l_content then
b := l_body b := l_content
end end
-- Read out the summary field from the form data -- Read out the summary field from the form data
@@ -234,8 +233,8 @@ feature -- Forms ...
end end
--Content --Content
if attached fd.string_item ("body") as l_body then if attached fd.string_item ("content") as l_content then
b := l_body b := l_content
end end
if attached fd.string_item ("format") as s_format and then attached response.api.format (s_format) as f_format then if attached fd.string_item ("format") as s_format and then attached response.api.format (s_format) as f_format then