19 lines
1.5 KiB
Plaintext

@model PlotLine.Models.WritingSolver.SolverJourney
@inject PlotLine.Services.WritingSolverReview Review
@if(await Review.Enabled(Context))
{
<details class="solver-review" style="margin-top:24px;border:1px solid #cbbdad;border-radius:8px;padding:12px;overflow-wrap:anywhere">
<summary>Review journey · Development only</summary>
<partial name="~/Views/WritingSolverReview/Snapshot.cshtml" model="Review.Capture(Model.Graph,Model.Outcome.Answers)" />
<form method="post" action="/admin/writing-solver-review/feedback" class="solver-review-feedback">
@Html.AntiForgeryToken()
<input type="hidden" name="state" value="@Model.History" />
<p><label style="display:block;max-width:100%">What feels wrong? <select name="category" required style="display:block;max-width:100%">@foreach(var category in PlotLine.Services.WritingSolverReview.Categories){<option>@category</option>}</select></label></p>
<p><label style="display:block;max-width:100%">Optional note (please omit manuscript prose)<br /><textarea name="note" rows="3" maxlength="2000" style="max-width:100%;width:32rem"></textarea></label></p>
<button type="submit" class="marketing-btn marketing-btn--secondary">Capture feedback</button>
<p>Your accepted answers and this step/result are saved automatically. Unsubmitted choices are not captured.</p>
</form>
<p><a href="/admin/writing-solver-review">Review feedback / disable Review Mode →</a></p>
</details>
}