start of iteration 2
Some checks failed
/ Run tests (push) Failing after 1m19s
/ Run system tests (push) Failing after 1m18s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-31 23:13:18 +01:00
parent 9fb87a74ce
commit 729ed13521
75 changed files with 705 additions and 170 deletions

View file

@ -0,0 +1,52 @@
<h1><i class="bi bi-journal-text me-2"></i><%= @report.name %></h1>
<p class="small">
Erstellt am <%= l(@report.created_at, format: :short) %>,
zuletzt bearbeitet am <%= l(@report.updated_at, format: :short) %>
</p>
<% if @report.comment %>
<div class="mt-2 mb-4 lead">
<%= @report.comment %>
</div>
<% end %>
<div class="border-top pt-3">
<%= turbo_frame_tag "new_page_frame" do %>
<%= render partial: "reports/new_page_button", locals: { report: @report } %>
<% end %>
</div>
<div id="page_list">
<% @report.pages.each do |page| %>
<%= turbo_frame_tag dom_id(page, :frame) do %>
<%= render page %>
<% end %>
<% end %>
</div>
<div class="action-row">
<%= link_to report_path(@report, format: :pdf), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-filetype-pdf"></i> PDF
<% end %>
<%= link_to report_path(@report, format: :docx), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-filetype-docx"></i> DOCX
<% end %>
<%= link_to report_path(@report, format: :xlsx), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-filetype-xlsx"></i> XLSX
<% end %>
<%= link_to report_path(@report, format: :rtf), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-file-richtext"></i> RTF
<% end %>
<%= link_to report_path(@report, format: :xml), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-filetype-html"></i> HTML
<% end %>
<%= link_to report_path(@report, format: :odt), class: "btn btn-primary", target: "_blank" do %>
<i class="bi bi-file-richtext"></i> ODT
<% end %>
</div>
<div class="action-row">
<%= link_to t("scaffold.link_edit", model: @report.model_name.human), edit_report_path(@report) %>
<%= link_to t("scaffold.link_index", model: @report.model_name.human(count: 2)), reports_path %>
<%= button_to t("scaffold.link_destroy", model: @report.model_name.human), @report, method: :delete, class: "btn btn-outline-danger" %>
</div>