a11yist/app/views/elements/_form.html.erb

16 lines
516 B
Text
Raw Normal View History

2024-07-20 16:52:12 +02:00
<%= bootstrap_form_with(model: element) do |form| %>
2024-07-19 02:29:18 +02:00
<%= form.hidden_field :report_id %>
2024-07-20 16:52:12 +02:00
<div class="row">
<div class="col">
<%= form.text_field :path %>
</div>
<div class="col">
<%= form.collection_select(:checklist_id, Checklist.all, :id, :name) %>
</div>
</div>
2024-07-19 02:29:18 +02:00
<%= form.text_field :title %>
<%= form.rich_text_area :description_html %>
2024-07-20 16:52:12 +02:00
<%= form.submit class: "btn btn-warning" %>
<%= link_to("Abbrechen", element.report, class: "btn btn-outline-secondary") %>
<% end %>