

= turbo_frame_tag dom_id(@success_criterion.element, :new_success_criterion_frame) do 
  .border.p-3
    = bootstrap_form_with(url: create_from_checklist_element_success_criteria_path(@success_criterion.element), name: :new_from_checklist) do |form| 
      = form.collection_select :checklist_id, Checklist.all.order(:name), :id, :name, hide_label: true
      = form.submit "Hinzufügen", class: "btn btn-primary"
      = link_to "Abbrechen", @success_criterion.persisted? ? @success_criterion : @success_criterion.element, class: "btn btn-outline-secondary" 