mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-17 11:47:04 +02:00
Extract html class
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
a5300c022b
commit
771b594f98
@ -58,9 +58,10 @@ class FluentdFormBuilder < ActionView::Helpers::FormBuilder
|
|||||||
section_class = object.class._sections[key]
|
section_class = object.class._sections[key]
|
||||||
children = object.__send__(key) || { "0" => {} }
|
children = object.__send__(key) || { "0" => {} }
|
||||||
html = ""
|
html = ""
|
||||||
|
html_class = "js-nested-column #{section_class.multi ? "js-multiple" : ""}"
|
||||||
|
|
||||||
children.each do |index, child|
|
children.each do |index, child|
|
||||||
html << content_tag("div", class: "js-nested-column #{section_class.multi ? "js-multiple" : ""}") do
|
html << content_tag("div", class: html_class) do
|
||||||
_html = ""
|
_html = ""
|
||||||
_html << append_and_remove_links if section_class.multi
|
_html << append_and_remove_links if section_class.multi
|
||||||
_html << label(key, nil, data: { toggle: "tooltip", placement: "right" }, title: object.desc(key))
|
_html << label(key, nil, data: { toggle: "tooltip", placement: "right" }, title: object.desc(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user