15 lines
569 B
Text
15 lines
569 B
Text
<%= bootstrap_form_with(model: element, data: element.persisted? || { turbo_frame: "_top" }) do |form| %>
|
|
<%= form.hidden_field :report_id %>
|
|
<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>
|
|
<%= form.text_field :title %>
|
|
<%= form.rich_text_area :description_html %>
|
|
<%= form.submit class: "btn btn-warning" %>
|
|
<%= link_to("Abbrechen", element.report, class: "btn btn-outline-secondary") %>
|
|
<% end %>
|