mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
25 lines
800 B
Plaintext
25 lines
800 B
Plaintext
<%=
|
|
render(Primer::Beta::Text.new(font_weight: :bold)) do
|
|
concat render(Primer::Beta::Octicon.new(icon: :tasklist, color: :muted, mr: 2))
|
|
concat render(Primer::Beta::Text.new) { I18n.t("projects.wizard.sidebar_content_title") }
|
|
end
|
|
%>
|
|
<%=
|
|
render(Primer::Alpha::TreeView.new(mt: 2, node_variant: :anchor, expanded: true)) do |tree_view|
|
|
custom_fields_by_section.keys.each do |section|
|
|
tree_view.with_leaf(
|
|
label: section.name,
|
|
href: project_creation_wizard_path(project, section: section.id),
|
|
current: section_current?(section),
|
|
data: {
|
|
turbo_frame: "_top"
|
|
}
|
|
) do |item|
|
|
if section_completed?(section)
|
|
item.with_trailing_visual_icon(icon: :check, color: :success)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
%>
|