30 lines
5.5 KiB
Plaintext
30 lines
5.5 KiB
Plaintext
@inject PlotLine.Services.Investigations.InvestigationAccess InvestigationAccess
|
|
@model WriterDashboardViewModel
|
|
<div class="writer3-workspace writer2-explore" data-explore-layout aria-label="Story exploration">
|
|
<section id="explore-discovery" class="writer3-panel" data-discovery data-owner="@User.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier)?.Value" data-book="@Model.BookID" data-project="@Model.ProjectID">
|
|
<h2>Discover what could help your story</h2><p>Find a practical next step, or try a different way of looking at your work.</p>
|
|
@if(Model.ProjectID.HasValue){
|
|
<div data-discovery-active></div><div data-discovery-tiles>
|
|
@foreach(var suggestion in Model.Suggestions.Where(x=>x.Key!="explore").Take(2)){
|
|
<article class="writer2-tile" data-tile="suggestion-@suggestion.Key" data-rank="80"><h3>@suggestion.Action</h3><p>@suggestion.Observation</p><a asp-controller="@suggestion.Controller" asp-action="@suggestion.RouteAction" asp-route-id="@suggestion.EntityID" asp-route-projectId="@Model.ProjectID" asp-route-bookId="@Model.BookID" asp-route-chapterId="@suggestion.ChapterID">@suggestion.Action</a><div class="button-row"><button type="button" data-defer>Later</button><button type="button" data-dismiss>Not now</button></div></article>}
|
|
<article class="writer2-tile" data-tile="chapters" data-rank="@(Model.ObjectiveChoices.Count==0?95:40)"><h3>Give your writing a place</h3><p>@(Model.ObjectiveChoices.Count==0?"No chapters are recorded here yet. Add one when you want to organise your writing in PlotDirector.":"Your chapters and scenes are available. Develop their intentions or continue an outline.")</p><a asp-controller="@(Model.BookID.HasValue?"Books":"Projects")" asp-action="Details" asp-route-id="@(Model.BookID??Model.ProjectID)" asp-fragment="chapters">@(Model.BookID.HasValue?"Work with chapters and scenes":"Choose or create a book")</a><div class="button-row"><button type="button" data-defer>Later</button><button type="button" data-dismiss>Not now</button></div></article>
|
|
<article class="writer2-tile" data-tile="characters" data-rank="65"><h3>Understand the people in your story</h3><p>Record what matters about your characters, whether you are starting out or deepening a draft.</p><a asp-controller="Characters" asp-action="Index" asp-route-projectId="@Model.ProjectID">Develop your characters</a><div class="button-row"><button type="button" data-defer>Later</button><button type="button" data-dismiss>Not now</button></div></article>
|
|
<article class="writer2-tile" data-tile="plot-lines-threads" data-rank="@(Model.ObjectiveChoices.Count>0?70:50)"><h3>Connect what happens</h3><p>Trace your plot lines and threads alongside the story you have recorded.</p><a asp-controller="PlotLineWorkspace" asp-action="Index" asp-route-projectId="@Model.ProjectID" asp-route-bookId="@Model.BookID">Explore plot lines and threads</a><div class="button-row"><button type="button" data-defer>Later</button><button type="button" data-dismiss>Not now</button></div></article>
|
|
<article class="writer2-tile" data-tile="floor-plans" data-rank="20"><h3>Picture the space around a scene</h3><p>A floor plan can help you think about rooms, positions and movement.</p><a asp-controller="FloorPlans" asp-action="Index" asp-route-projectId="@Model.ProjectID">Explore floor plans</a><div class="button-row"><button type="button" data-defer>Later</button><button type="button" data-dismiss>Not now</button></div></article>
|
|
</div><button type="button" class="btn btn-link" data-reconsider>Reconsider hidden suggestions</button><p data-discovery-message role="status"></p>
|
|
}else{<p>Choose a project to discover tools for its characters, settings and story.</p><a class="btn btn-primary" asp-controller="Projects" asp-action="Index">Choose or create a project</a>}
|
|
</section>
|
|
<div class="writer3-divider writer-explore-divider" data-explore-divider role="separator" tabindex="0" aria-orientation="vertical" aria-label="Resize discovery and investigation panels" aria-controls="explore-discovery explore-concern" aria-describedby="explore-resize-help" aria-valuemin="25" aria-valuemax="75" aria-valuenow="50"><span id="explore-resize-help" class="visually-hidden">Left and right arrows resize the discovery panel. Shift uses larger steps. Home and End move to the width limits.</span></div>
|
|
<section id="explore-concern" tabindex="-1" class="writer3-panel" aria-label="Explore a concern"><h2>Explore a concern</h2><p>You do not need to know the answer yet. Start with what is troubling you.</p>
|
|
@if(InvestigationAccess.Enabled&&Model.BookID.HasValue){
|
|
<div data-explore-investigation data-book="@Model.BookID" data-project="@Model.ProjectID" data-delete-url="@Url.Action("Delete","WriterInvestigations")">
|
|
@Html.AntiForgeryToken()
|
|
<div class="writer21-tabs" role="tablist" aria-label="Investigations"><button type="button" role="tab" aria-selected="true" data-explore-tab="new">New investigation</button><button type="button" role="tab" aria-selected="false" data-explore-tab="saved">Saved investigations</button></div>
|
|
<p data-explore-message role="status"></p>
|
|
<div data-explore-pane="new"><div data-explore-journey data-opening-url="@Url.Action("Opening","WriterInvestigations",new{bookId=Model.BookID})"><p>Loading starting concerns…</p></div></div>
|
|
<div data-explore-pane="saved" hidden><h3>Saved investigations</h3><div class="writer21-bounded" data-explore-saved></div></div>
|
|
</div>
|
|
}else{<p>@(Model.BookID.HasValue?"Guided Investigation is not available in this environment. The story tools remain available.":"Select a book to keep your concerns and investigations with that book.")</p>}
|
|
</section>
|
|
</div>
|