  <h1><i class="bi bi-journal-text me-2"></i><%= @report.name %></h1>
  <p class="small mb-3">
    Erstellt am <%= l(@report.created_at, format: :short) %>,
    zuletzt bearbeitet am <%= l(@report.updated_at, format: :short) %>
  </p>

  <% if @report.comment %>
    <div class="mb-4 lead">
    <%= @report.comment %>
    </div>
  <% end %>

  <div class="pt-3">
    <%= turbo_frame_tag "new_element_frame" do %>
      <%= render partial: "reports/new_element_button", locals: { report: @report } %>
    <% end %>
  </div>

  <div id="element_list">
    <% @report.elements.each do |element| %>
      <%= turbo_frame_tag dom_id(element, :frame) do %>
        <%= render element %>
      <% end %>  
    <% end %>
  </div>
