44 lines
2.5 KiB
Plaintext
44 lines
2.5 KiB
Plaintext
@using PlotLine.Data
|
|
@model PlotLine.Services.Context.IntentPaletteScope
|
|
@{
|
|
var chapterChecklist = new ViewDataDictionary(ViewData) { ["IntentChecklistScope"] = "chapter" };
|
|
var sceneChecklist = new ViewDataDictionary(ViewData) { ["IntentChecklistScope"] = "scene" };
|
|
}
|
|
<div data-context-tab-fragment data-context-intent data-project-id="@Model.ProjectID"
|
|
data-book-id="@Model.BookID" data-chapter-id="@Model.ChapterID" data-scene-id="@Model.SceneID">
|
|
<div data-intent-material data-material-url="@Url.Action("Material", "ContextIntent")"
|
|
data-notes-url="@Url.Action("Notes", "ContextIntent")" data-checklist-url="@Url.Action("Checklist", "ContextIntent")">
|
|
@foreach (var scope in new[] { "Chapter", "Scene" })
|
|
{
|
|
<form class="mb-2" data-intent-notes="@scope" hidden>
|
|
@Html.AntiForgeryToken()
|
|
<label class="d-block">@scope writing notes
|
|
<textarea class="form-control form-control-sm" rows="3" maxlength="100000" readonly></textarea>
|
|
</label>
|
|
<button class="btn btn-sm btn-outline-primary mt-1" type="submit" disabled>Save notes</button>
|
|
<button class="btn btn-sm btn-outline-secondary mt-1" type="button" data-notes-discard disabled>Discard</button>
|
|
<span class="small text-body-secondary" role="status"></span>
|
|
</form>
|
|
}
|
|
@foreach (var scope in new[] { StoryElementType.Chapter, StoryElementType.Scene })
|
|
{
|
|
<details class="mb-2" data-intent-attachments="@scope"
|
|
data-attachments-url="@Url.Action("List", "StoryElementReferences", new { entityType = scope })"
|
|
hidden="@(scope == StoryElementType.Scene && !Model.SceneID.HasValue)">
|
|
<summary>@scope attachments</summary>
|
|
<div data-intent-attachment-content></div>
|
|
</details>
|
|
}
|
|
<div data-intent-material-rows></div>
|
|
<p class="small text-body-secondary" data-intent-material-status role="status"></p>
|
|
</div>
|
|
<details class="mb-2">
|
|
<summary>Chapter checklist</summary>
|
|
<partial name="~/Views/Writing/_ContextIntentChecklist.cshtml" model="Model" view-data="chapterChecklist" />
|
|
</details>
|
|
<details class="mb-2" data-intent-scene-checklist hidden="@(!Model.SceneID.HasValue)">
|
|
<summary>Scene checklist</summary>
|
|
<partial name="~/Views/Writing/_ContextIntentChecklist.cshtml" model="Model" view-data="sceneChecklist" />
|
|
</details>
|
|
</div>
|