json.left_banner_id @left_banner_id json.left_banner_name @left_banner_name json.course_name @course.name json.partial! 'new_or_edit_data', locals: {teachers: @teachers} json.selected_data do json.(@graduation_topic, :tea_id, :name, :topic_type, :topic_source, :topic_property_first, :description, :topic_property_second, :status, :source_unit, :topic_repeat, :province, :city, :is_public) end json.attachments do json.array! @attachments do |attachment| json.partial! "attachments/attachment_simple", locals: {attachment: attachment} end end