PlotDirector/PlotLine/Views/Writing/_ContextSpatial.cshtml

17 lines
2.0 KiB
Plaintext
Raw 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><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-location-layout"><nav data-spatial-scenes aria-label="Previous, current and next scene locations"></nav><section data-spatial-details aria-label="Inspected location"><p>Loading recorded locations…</p></section></div>
}else{
<div data-spatial-scenes class="spatial-scene-strip" aria-label="Scene locations"></div>
<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><button type="button" data-spatial-place>@(Model.Kind=="maps"?"Place location":"Associate room")</button><a data-spatial-advanced>Open in @(Model.Kind=="maps"?"Maps":"Floor Plans")</a></div>
<p data-spatial-resolution class="small muted"></p><div data-spatial-canvas class="spatial-canvas"></div><div data-spatial-feature></div>
}
<div data-spatial-operation class="spatial-operation" hidden></div>
<button type="button" data-spatial-undo hidden>Undo spatial change</button>
</div>