<% if @edit_forum_status[:status] == 0 %>
  $("#add-section-forum").removeClass("none").html("<%= j render partial: "admins/forum_sections/shared/error_section", locals: {error_messages: @edit_forum_status[:msg] } %>")
<% else %>
  $("#add-section-forum").addClass("none")
  <% if @forum_section.parent_id.present? %>
    $("#children-forum-detail-<%= @forum_section.id %>").html("<%= j render partial: "admins/forum_sections/children_forum_detail", locals: {children_forum: @forum_section} %>")
  <% else %>
    $("#forum-section-detail-<%= @forum_section.id %>").html("<%= j render partial: "admins/forum_sections/td_forum_section", locals: {forum: @forum_section} %>")
  <% end %>
  $('#admin-forum-section-modal').modal("hide")
<% end %>

