PlotDirector/PlotLine/Views/Writer/_WriterReview.cshtml

30 lines
4.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WriterDashboardViewModel
@{var reader=Model.ReviewReader;var word=new WriterDashboardViewModel{BookID=Model.BookID,ProjectID=Model.ProjectID,WordNavigationContext="review",Objective=reader?.Chapter==null?null:new(){ChapterID=reader.Chapter.ChapterID,ChapterTitle=reader.Chapter.ChapterTitle,Activity="Revising"}};}
<div class="writer3-workspace" aria-label="Manuscript review">
<section class="writer3-panel writer3-main" tabindex="0" aria-label="Accepted manuscript">
@if(reader!=null){<partial name="~/Views/ManuscriptReader/_Reader.cshtml" model="reader" />}
else{<h2>Read the accepted manuscript</h2><p>Select a book with chapters to review your accepted writing.</p><a asp-controller="Books" asp-action="Details" asp-route-id="@Model.BookID">Open your book</a>}
</section>
<aside class="writer3-panel writer3-reference" tabindex="0" aria-label="Review intentions and observations">
<div class="writer3-authoring-heading"><h2>Notice &amp; decide</h2><help-icon key="writer3.reviewing" /></div>
@if(reader?.Chapter!=null){
<div data-writer-review data-book="@Model.BookID" data-chapter="@reader.Chapter.ChapterID" data-panel-url="@Url.Action("Panel","WriterReview")">
<p data-review-reference>Chapter observation · select text or a paragraph for a passage reference.</p><p data-review-message role="status"></p>
<button type="button" class="btn btn-sm btn-outline-primary" data-review-new>Something here needs attention</button>
<form asp-controller="WriterReview" asp-action="Save" method="post" data-review-form hidden>
<input type="hidden" name="BookID" value="@Model.BookID"/><input type="hidden" name="ChapterID" value="@reader.Chapter.ChapterID"/><input type="hidden" name="ID"/><input type="hidden" name="Version" value="0"/><input type="hidden" name="ContentVersion"/>
<input type="hidden" name="StartParagraph"/><input type="hidden" name="EndParagraph"/><input type="hidden" name="StartOffset"/><input type="hidden" name="EndOffset"/>
<div class="writer3-inline-field"><label for="review-observation">What have you noticed?</label><textarea id="review-observation" name="Observation" class="form-control" maxlength="10000" rows="4" required></textarea></div>
<div class="writer3-inline-field"><label for="review-decision">What would you like to change? (optional)</label><textarea id="review-decision" name="Decision" class="form-control" maxlength="10000" rows="3"></textarea></div>
<label for="review-status">Your decision</label><select name="Status" id="review-status" class="form-select"><option value="Open">Needs attention</option><option value="Working">Working on it</option><option value="Resolved">Resolved</option></select>
<p data-review-error role="alert" hidden></p><div class="button-row"><button class="btn btn-primary" type="submit" data-review-save>Save observation</button><button type="button" class="btn btn-outline-secondary" data-review-cancel>Cancel</button></div>
</form>
<button type="button" class="btn btn-sm btn-link" data-review-chapter>Use a chapter-level reference</button>
<div data-review-context aria-live="polite"><p>Loading recorded intentions and observations…</p></div>
</div>
<details class="writer3-authoring-details"><summary>Return to Word</summary><partial name="_WriterWord" model="word" /></details>
}
<details class="writer3-authoring-details"><summary>Saved assessments &amp; other tools</summary><p>Author observations above are separate from automated findings. Opening Review runs no analysis.</p><div class="writer3-link-list"><button type="button" data-open-writing-intent>Open Intent &amp; saved assessment evidence</button><button type="button" data-open-writing-context>Open standalone Context</button><a asp-controller="Books" asp-action="Details" asp-route-id="@Model.BookID">Open the book’s saved analysis and review tools</a><a asp-action="Write" asp-route-projectId="@Model.ProjectID" asp-route-bookId="@Model.BookID">Return to saved writing focus</a></div><p data-writing-workspace-message role="status"></p></details>
</aside>
</div>