PlotDirector/PlotLine/Views/Writing/_ContextSpatial.cshtml
2026-12-01 20:01:50 +00:00

25 lines
2.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@{ Layout = null; }
@model PlotLine.Services.Context.SpatialFragment
<div data-context-tab-fragment data-spatial-context="@Model.Kind" data-project-id="@Model.Scope.ProjectID" data-book-id="@Model.Scope.BookID" data-chapter-id="@Model.Scope.ChapterID" data-scene-id="@Model.Scope.SceneID" class="context-spatial">
<form hidden data-spatial-token>@Html.AntiForgeryToken()</form>
<div class="spatial-toolbar"><button type="button" data-spatial-return>Return to scene location</button><label>Layout <select data-spatial-orientation aria-label="Panel layout"><option value="horizontal">Side by side</option><option value="vertical">Stacked</option></select></label><span data-spatial-status role="status"></span></div>
<p data-spatial-error class="text-danger" role="alert"></p>
@if(Model.Kind=="locations"){
<div class="spatial-split-layout" data-spatial-layout><nav data-spatial-scenes aria-label="Previous, current and next scene locations"></nav><div data-spatial-splitter></div><section data-spatial-details aria-label="Inspected location"><p>Loading recorded locations…</p></section></div>
}else{
<div class="spatial-toolbar"><label>@(Model.Kind=="maps"?"Map":"Floor plan") <select data-spatial-resource aria-label="@(Model.Kind=="maps"?"Map":"Floor plan")"></select></label><button type="button" data-spatial-zoom="in" aria-label="Zoom in">+</button><button type="button" data-spatial-zoom="out" aria-label="Zoom out">−</button><button type="button" data-spatial-fit>@(Model.Kind=="maps"?"Fit scene locations":"Fit plan")</button><button type="button" data-spatial-centre>Centre on selection</button><a data-spatial-advanced>Open in @(Model.Kind=="maps"?"Maps":"Floor Plans")</a></div>
<div class="spatial-split-layout" data-spatial-layout>
<section class="spatial-information" aria-label="Spatial information">
<div data-spatial-scenes aria-label="Previous, current and next scene locations"></div>
<p data-spatial-resolution class="small muted"></p>
<section data-spatial-characters aria-label="Recorded scene characters"></section>
<div data-spatial-feature></div>
</section>
<div data-spatial-splitter></div>
<section class="spatial-drawing" aria-label="@(Model.Kind=="maps"?"Map drawing":"Floor plan drawing")"><div data-spatial-canvas class="spatial-canvas"></div></section>
</div>
}
<div data-spatial-operation class="spatial-operation" hidden></div>
<button type="button" data-spatial-undo hidden>Undo spatial change</button>
</div>