.container-fluid nav ol.breadcrumb li.breadcrumb-item = link_to projects_path do | Projects li.breadcrumb-item = link_to @project.title, @project li.breadcrumb-item.active | Sections .row .col-md-3 = render partial: "projects/sidebar" .col-md-9 .d-flex.justify-content-between h4 Sections div = link_to "Upload CSV", upload_csv_master_sections_path(project_id: @project.id), class: "btn btn-sm btn-primary" = link_to "New Section", new_master_section_path(project_id: @project.id), class: "btn btn-sm btn-outline-primary ms-2" - if @master_sections.empty? .alert.alert-danger.mt-3 There are no sections defined for #{@project.title} - else table.table.table-striped thead tr th | Name th th tbody - @master_sections.order(:name).each do | master_section | tr td = master_section.name td = link_to edit_master_section_path(master_section) , class: "btn btn-link" do i.bi.bi-pencil td = button_to master_section, method: :delete, data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' } , class: "btn text-danger btn-link" do i.bi.bi-trash-fill