a11yist/app/views/success_criteria/new.html.slim
david 729ed13521
Some checks failed
/ Run tests (push) Failing after 1m19s
/ Run system tests (push) Failing after 1m18s
/ Build, push and deploy image (push) Has been skipped
start of iteration 2
2024-10-31 23:13:18 +01:00

11 lines
No EOL
747 B
Text

h1
= t("scaffold.pagetitle_new", model: SuccessCriterion.model_name.human)
= turbo_frame_tag dom_id(@success_criterion.element, "new_success_criterion_frame") do
.border.border-info.p-3
= bootstrap_form_with(model: @success_criterion.persisted? ? @success_criterion : [:element, @success_criterion]) do |form|
= form.collection_select :check_id, Check.all.order(:external_number), :id, :display_label
= form.submit class: "btn btn-warning"
= link_to "Abbrechen", @success_criterion.persisted? ? @success_criterion : @success_criterion.element, class: "btn btn-outline-secondary"
.action-row
= link_to t("scaffold.link_index", model: SuccessCriterion.model_name.human(count: 2)), element_success_criteria_path(@element)