9 lines
1.7 KiB
Plaintext

@model PlotLine.Services.NativeCompanion.NativeImportPlan
@{ViewData["Title"]="Preview approved import";}
<div class="container py-4"><h1 class="h3">Preview approved import</h1><h2 class="h5">Target book: @Model.BookTitle</h2><p>Creates @Model.Items.Length new chapters and @Model.Items.Sum(i=>i.Scenes.Length) scenes. @Model.Skipped rejected, pending or already imported scenes are skipped. Word remains unchanged.</p>
<p>New chapters append in manuscript order. Existing chapters, relationships, plot lines and author metadata are preserved. Matching imported captures are skipped; competing changes require reconciliation.</p>
@if(Model.Conflicts.Length>0){<div class="alert alert-warning"><h2 class="h5">Resolve before importing</h2><ul>@foreach(var conflict in Model.Conflicts){<li>@conflict</li>}</ul></div>}
@foreach(var chapter in Model.Items){<section class="card mb-3"><h2 class="card-header h5">Create chapter: @chapter.Title</h2><ul class="list-group list-group-flush">@foreach(var scene in chapter.Scenes){<li class="list-group-item"><strong>Create scene: @scene.Title</strong><p>@scene.Summary</p><small>@scene.Words words</small></li>}</ul></section>}
@if(Model.Conflicts.Length==0&&Model.Items.Length>0){<form method="post" action="/native-companion/import/commit">@Html.AntiForgeryToken()<input type="hidden" name="confirmation" value="@Model.Ticket" /><label class="d-block mb-3"><input type="checkbox" name="confirm" value="true" required /> Import only this approved structure and prose. Pending/rejected sections are not imported.</label><button class="btn btn-primary">Commit approved import</button></form>}
<a class="d-block mt-3" href="/native-companion/workspace?bookId=@Model.BookID">Cancel / return to reviews</a></div>