= form_with model: event, url: url, method: method do |form| .row.mb-3 .col .form-floating = form.text_field :name, autocomplete: "off", class: "form-control" = form.label :name, class: "required" .row.mb-3 .col .form-check.form-switch = form.check_box :shared_scoreboard, class: "form-check-input" = form.label :shared_scoreboard .form-text = t("activerecord.attributes.event.shared_scoreboard_description") .alert.alert-primary role="alert" = t("events.form.shared_scoreboard_message") .row.mt-4 .col - if method == :patch = link_to t("helpers.buttons.delete"), event_path(event), data: { turbo_method: :delete }, class: "btn btn-danger me-2" = form.submit submit_text, class: "btn btn-primary"