17 lines
1.5 KiB
Plaintext
17 lines
1.5 KiB
Plaintext
@model WriterDashboardViewModel
|
|
<section class="writer-help" aria-label="Help Me">
|
|
<button class="btn btn-danger btn-lg" type="button" data-writer-help aria-expanded="false" aria-controls="writer-help-options">Help Me</button>
|
|
<span>Choose a useful next action, or stay with your current work.</span>
|
|
<div id="writer-help-options" hidden>
|
|
<div class="writer-section-heading"><h2>What could I do next?</h2><button class="btn btn-outline-secondary" type="button" data-writer-help-close>Dismiss suggestions</button></div>
|
|
<div class="writer-help-grid">@foreach(var suggestion in Model.Suggestions){<article>
|
|
<p><strong>Observation:</strong> @suggestion.Observation</p>
|
|
@if(suggestion.Interpretation!=null){<p class="muted">Possible interpretation: @suggestion.Interpretation</p>}
|
|
<a class="btn btn-outline-primary" asp-controller="@suggestion.Controller" asp-action="@suggestion.RouteAction" asp-route-id="@suggestion.EntityID" asp-route-chapterId="@suggestion.ChapterID" asp-route-bookId="@Model.BookID" asp-route-projectId="@Model.ProjectID">@suggestion.Action</a>
|
|
</article>}</div>
|
|
@if(Model.Suggestions.Count==0){<p>Select a book to get suggestions based on its chapters and plans.</p>}
|
|
<a asp-action="Index" asp-route-projectId="@Model.ProjectID" asp-route-bookId="@Model.BookID" asp-fragment="working-focus">Return to Writing</a>
|
|
<p class="muted">For a break, end your session below and leave a return note. No time away is counted as engaged work.</p>
|
|
</div>
|
|
</section>
|