PlotDirector/PlotLine/Views/Writing/_ContextIntentChecklist.cshtml
2026-12-06 17:57:40 +00:00

43 lines
2.8 KiB
Plaintext

@model PlotLine.Services.Context.IntentPaletteScope
@{ var fixedScope = ViewData["IntentChecklistScope"] as string; }
<section data-fixed-scope="@fixedScope" class="border rounded p-2 mb-2" data-intent-checklist
data-url="@Url.Action("Checklist", "ContextIntent")"
data-passages-url="@Url.Action("Passages", "ContextIntent")"
data-preview-url="@Url.Action("Preview", "ContextIntent")"
data-book-id="@Model.BookID" data-chapter-id="@Model.ChapterID" data-scene-id="@Model.SceneID">
@Html.AntiForgeryToken()
@if (fixedScope is null) { <h3 class="h6">Intent checklist</h3> }
<label class="small" data-checklist-scope-label hidden="@(fixedScope is not null || !Model.SceneID.HasValue)">
<input type="checkbox" data-checklist-scene checked="@(fixedScope == "scene")" /> Scene checklist
</label>
<p class="small text-body-secondary mb-1" data-checklist-objective hidden></p>
<p class="small text-body-secondary mb-1" data-checklist-outcome hidden></p>
<p class="small text-body-secondary mb-1" role="status" data-checklist-status></p>
<ol class="list-group list-group-numbered mb-2" data-checklist-items></ol>
<div data-checklist-controls hidden>
<div class="d-flex flex-wrap gap-2 mb-2">
<button type="button" class="btn btn-sm btn-outline-secondary" data-checklist-add>Add item</button>
<button type="button" class="btn btn-sm btn-primary" data-checklist-save>Save checklist</button>
<button type="button" class="btn btn-sm btn-outline-secondary" data-checklist-discard>Discard draft</button>
</div>
@if (fixedScope == "scene")
{
<button type="button" class="btn btn-sm btn-outline-secondary mb-2" data-checklist-review-template>Add scene review template</button>
}
<details data-checklist-paste-panel>
<summary>Paste a checklist</summary>
<label class="d-block mt-2">Checklist text
<textarea class="form-control form-control-sm" rows="3" data-checklist-paste></textarea>
</label>
<button type="button" class="btn btn-sm btn-outline-secondary mt-1" data-checklist-preview>Preview</button>
<ol class="list-group list-group-numbered mt-1" data-checklist-preview-items></ol>
<button type="button" class="btn btn-sm btn-outline-secondary mt-1" data-checklist-apply hidden>Add reviewed items</button>
</details>
</div>
<details data-checklist-passages hidden>
<summary>Review evidence from changed Word passages</summary>
<p class="small text-body-secondary m-1">Drag a passage onto an item to attach evidence and complete it.</p>
<ul class="list-group list-group-flush" data-checklist-passage-list></ul>
</details>
</section>