OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
<%=
component_wrapper(class: "op-meeting-section-container", data: { test_selector: "meeting-section-container-#{@meeting_section.id}" }.merge(draggable_item_config)) do
render(border_box_container(mt: 3, data: drag_and_drop_target_config)) do |component|
if render_section_wrapper?
component.with_header(font_weight: :bold, pl: 0) do
render(MeetingSections::HeaderComponent.new(meeting_section: @meeting_section, state: @state))
end
elsif render_backlog?
component.with_header do
render(MeetingSections::Backlogs::HeaderComponent.new(backlog: @meeting_section, box: component, collapsed: @collapsed, current_occurrence: @current_occurrence))
end
end
if render_new_button_in_section?
component.with_row(data: { "empty-list-item": true }) do
flex_layout(align_items: :center, justify_content: :space_between, classes: "hide-when-print") do |empty_list_container|
empty_list_container.with_column(mr: 2) do
render(Primer::Beta::Text.new(color: :subtle)) { t("meeting_section.empty_text") }
end
empty_list_container.with_column do
render(MeetingAgendaItems::NewButtonComponent.new(meeting: @meeting, meeting_section: @meeting_section, current_occurrence: @current_occurrence))
end
end
end
else
first_and_last = [@meeting_agenda_items.first, @meeting_agenda_items.last]
@meeting_agenda_items.each do |agenda_item|
render(
MeetingAgendaItems::ItemComponent.new(
meeting_agenda_item: agenda_item,
container: component,
first_and_last:,
current_occurrence: @current_occurrence
)
)
end
end
component.with_row(p: 0, border_top: 0, id: insert_target_modifier_id) do
render(MeetingAgendaItems::NewComponent.new(meeting: @meeting, meeting_section: @meeting_section, hidden: @form_hidden, type: @form_type, current_occurrence: @current_occurrence))
end
end
end
%>