a11yist/app/views/elements/_form.html.erb
david 42c077f6ab
Some checks failed
/ Run tests (push) Failing after 1m9s
/ Run system tests (push) Failing after 1m13s
/ Build, push and deploy image (push) Has been skipped
Gui improvements, ordering
2024-11-01 03:26:46 +01:00

7 lines
372 B
Text

<%= bootstrap_form_with(model: element.persisted? ? element : [:page, element]) do |form| %>
<%= form.hidden_field :page_id %>
<%= form.text_field :title %>
<%= form.rich_text_area :description %>
<%= form.submit class: "btn btn-warning" %>
<%= link_to("Abbrechen", element.persisted? ? element : element.report, class: "btn btn-outline-secondary") %>
<% end %>