Relocate "Result-PDF" success message in Upload.cshtml

The code block displaying the "Result-PDF" success message was removed from its original location and reintroduced in a different section of the `Upload.cshtml` file. The new placement is after the success message confirming that the invoice was saved in the database. The functionality and alert structure remain unchanged, displaying the file path of the generated PDF if `Model.ResultFilePath` is not empty.
This commit is contained in:
OlgunR
2026-05-28 11:41:00 +02:00
parent 245f7a8268
commit 8e329c2b50

View File

@@ -40,13 +40,6 @@
{ {
<strong>⚠ Kein ZUGFeRD-XML gefunden.</strong> <strong>⚠ Kein ZUGFeRD-XML gefunden.</strong>
} }
@if (!string.IsNullOrEmpty(Model.ResultFilePath))
{
<div class="alert alert-success mt-2">
📦 <strong>Result-PDF erstellt:</strong>
<small class="text-muted">@Model.ResultFilePath</small>
</div>
}
</div> </div>
@* PDF/A-Konformitätsstufe anzeigen *@ @* PDF/A-Konformitätsstufe anzeigen *@
@@ -104,6 +97,13 @@
<tr><th>Importiert am</th><td>@Model.ImportedInvoice.ImportedAt.ToString("dd.MM.yyyy HH:mm")</td></tr> <tr><th>Importiert am</th><td>@Model.ImportedInvoice.ImportedAt.ToString("dd.MM.yyyy HH:mm")</td></tr>
</table> </table>
<div class="alert alert-success mt-2">✔ Rechnung wurde in der Datenbank gespeichert (ID: @Model.ImportedInvoice.Id)</div> <div class="alert alert-success mt-2">✔ Rechnung wurde in der Datenbank gespeichert (ID: @Model.ImportedInvoice.Id)</div>
@if (!string.IsNullOrEmpty(Model.ResultFilePath))
{
<div class="alert alert-success mt-2">
📦 <strong>Result-PDF erstellt:</strong>
<small class="text-muted">@Model.ResultFilePath</small>
</div>
}
@if (Model.IsDuplicate) @if (Model.IsDuplicate)
{ {
<div class="alert alert-warning mt-2"> <div class="alert alert-warning mt-2">