<% if @subject_index.is_root? %> <% else %> <% end %>
Edit <% if !@subject_index.has_children? %> Delete <% end %>
Sub Levels
<% @subject_index.children.order(name: :asc).each do |root| %>
<% if root.children.present? %> <% else %> <%= link_to root.name, subject_index_path(root.id), class: "accordion-link text-decoration-none text-dark d-block sub1 clickable-link" %> <%= link_to ''.html_safe, new_subject_index_path(parent_id: root.id), class: "text-decoration-none d-block sub1 clickable-link position-absolute end-0 accordion-action-button-margin non-toggle" %> <% end %>
" data-bs-parent="#mainPanelBody">
Loading...
<% end %>