5 lines
2.1 KiB
Plaintext
5 lines
2.1 KiB
Plaintext
@model BookRecoveryPage
|
|
@{ViewData["Title"]="Review book restore";var p=Model.Preview!;}
|
|
<div class="page-heading" data-pwa-header><h1>4. Review your restore</h1></div><section class="edit-panel"><p class="form-text">Backup file: @Model.UploadName</p><h2>@(p.Plan.Destination==0?"New project: "+p.Plan.Name:"Add books to: "+p.Plan.Name)</h2><ul>@foreach(var b in p.Selected.Data.Books){<li>@b.BookDisplayTitle @(b.IsArchived?"(archived)":"")</li>}</ul><dl><dt>Book slots required</dt><dd>@p.Selected.Data.Books.Count</dd><dt>Available slots now</dt><dd>@p.Available</dd><dt>Compatible common records reused</dt><dd>@p.Reused</dd><dt>Independent common records created</dt><dd>@p.Created</dd><dt>Uploaded files</dt><dd>@p.Selected.Files.Count</dd></dl><p>Common data is reused only with a verified source mapping and compatible saved content. Divergent data is copied independently. Existing work stays intact. Books are appended after existing books; chapter and scene order is preserved. Slot availability and destination state are checked again when you confirm.</p>@foreach(var warning in p.Warnings){<p class="alert alert-info">@warning</p>}@if(p.Available<p.Selected.Data.Books.Count){<p class="alert alert-warning">There are not enough book slots. Choose fewer books or free capacity separately; archiving does not release slots.</p>}<p>Confirmation starts a single transaction. Wait for its result; retrying the same confirmation is safe. Cancel below to leave without restoring.</p><form asp-action="Confirm" method="post"><input name="confirmation" type="hidden" value="@p.Confirmation"/><div class="form-check my-3"><input name="confirm" value="true" type="checkbox" required id="confirm" class="form-check-input"/><label for="confirm" class="form-check-label">Restore these books into the destination shown above. This uses @p.Selected.Data.Books.Count book slots.</label></div><button class="btn btn-primary" disabled="@(p.Available<p.Selected.Data.Books.Count)">Restore books</button> <a asp-action="Restore" class="btn btn-outline-secondary">Cancel</a></form></section>
|
|
@section Scripts{<script src="~/js/book-recovery.js" asp-append-version="true"></script>}
|