46 lines
2.1 KiB
Plaintext
46 lines
2.1 KiB
Plaintext
@model SceneEditViewModel
|
|
@{
|
|
var completed = Model.ChecklistItems.Count(x => x.IsCompleted);
|
|
var total = Model.ChecklistItems.Count;
|
|
var checklistLabel = total == 0 ? "No checklist yet" : $"{completed} of {total} complete";
|
|
}
|
|
|
|
<article class="scene-inspector-v2-card" data-scene-summary-part="writer">
|
|
<div class="scene-inspector-v2-card-header">
|
|
<div>
|
|
<p class="eyebrow">Writer</p>
|
|
<h3>Drafting support</h3>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="scene-inspector-v2-counts">
|
|
<div>
|
|
<span>Notes</span>
|
|
<strong>@Model.Notes.Count</strong>
|
|
</div>
|
|
<div>
|
|
<span>Checklist</span>
|
|
<strong>@checklistLabel</strong>
|
|
</div>
|
|
<div>
|
|
<span>Attachments</span>
|
|
<strong>@Model.Attachments.Count</strong>
|
|
</div>
|
|
</div>
|
|
|
|
@if (Model.Workflow.IsBlocked)
|
|
{
|
|
<div class="scene-inspector-v2-callout">
|
|
<strong>Blocked</strong>
|
|
<p>@(string.IsNullOrWhiteSpace(Model.Workflow.BlockedReason) ? "No blocked reason has been recorded." : Model.Workflow.BlockedReason)</p>
|
|
</div>
|
|
}
|
|
|
|
<div class="scene-inspector-v2-actions">
|
|
<button type="button" class="btn btn-sm btn-outline-primary" data-scene-editor="notes" data-scene-id="@Model.SceneID" data-scene-editor-url="@Url.Action("SceneNotesEditor", "Scenes", new { sceneId = Model.SceneID })">Manage notes</button>
|
|
<button type="button" class="btn btn-sm btn-outline-primary" data-scene-editor="checklist" data-scene-id="@Model.SceneID" data-scene-editor-url="@Url.Action("SceneChecklistEditor", "Scenes", new { sceneId = Model.SceneID })">Manage checklist</button>
|
|
<button type="button" class="btn btn-sm btn-outline-primary" data-scene-editor="workflow" data-scene-id="@Model.SceneID" data-scene-editor-url="@Url.Action("SceneWorkflowEditor", "Scenes", new { sceneId = Model.SceneID })">Manage workflow</button>
|
|
<button type="button" class="btn btn-sm btn-outline-primary" data-scene-editor="attachments" data-scene-id="@Model.SceneID">Manage attachments</button>
|
|
</div>
|
|
</article>
|