<% 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, "#", class: "accordion-link text-decoration-none text-dark d-block sub1 clickable-link", data: { controller: "application", href: subject_index_path(root.id), action: "click->application#openLink" } %> <%= 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 %>