19 lines
2.5 KiB
Plaintext
19 lines
2.5 KiB
Plaintext
@model PlotLine.Services.Context.ContextRelationshipForm
|
||
<form action="/Writing/Context/EditRelationship" method="post" data-context-edit-form>
|
||
@Html.AntiForgeryToken()
|
||
<input asp-for="BookID" type="hidden"/><input asp-for="SceneID" type="hidden"/><input asp-for="RelationshipID" type="hidden"/><input asp-for="Mode" type="hidden"/><input asp-for="ReferenceLens" type="hidden"/><input asp-for="Fingerprint" type="hidden"/>
|
||
<p><strong>@Model.Label</strong></p><div asp-validation-summary="All" class="text-danger" role="alert"></div>
|
||
@if(Model.RelationshipID>0){<p>@Model.Characters.FirstOrDefault(c=>c.Value==Model.SourceID.ToString())?.Text @(Model.Mutual?"↔":"→") @Model.Characters.FirstOrDefault(c=>c.Value==Model.TargetID.ToString())?.Text · @Model.Types.FirstOrDefault(t=>t.Value==Model.TypeID.ToString())?.Text</p><input asp-for="SourceID" type="hidden"/><input asp-for="TargetID" type="hidden"/><input asp-for="TypeID" type="hidden"/><input asp-for="Mutual" type="hidden"/>}
|
||
else{
|
||
<label>From character <select asp-for="SourceID" asp-items="Model.Characters" class="form-select"><option value="">Choose character</option></select></label>
|
||
<label>To character <select asp-for="TargetID" asp-items="Model.Characters" class="form-select"><option value="">Choose character</option></select></label>
|
||
<label>Relationship type and category <select asp-for="TypeID" asp-items="Model.Types" class="form-select"><option value="">Choose type</option></select></label>
|
||
<label><input asp-for="Mutual"/> Reciprocal (otherwise From → To)</label>}
|
||
<label>Recorded state <select asp-for="StateID" asp-items="Model.States" class="form-select"><option value="">Choose state</option></select></label>
|
||
<label>Intensity (optional, 1–10) <input asp-for="Intensity" type="number" min="1" max="10" class="form-control"/></label>
|
||
<label><input asp-for="Known"/> @(Model.Mode=="initial"?"Reader initially knows":"Known to the other character (recorded event flag)")</label>
|
||
<label>Author notes / explicit meeting evidence <textarea asp-for="Notes" maxlength="4000" rows="4" class="form-control"></textarea></label>
|
||
<p class="small">From → To retains the canonical direction (for example, From is Parent of To). Scene developments apply at this selected narrative point. Knowledge flags do not establish viewpoint knowledge. Notes are retained as author evidence; no first meeting is inferred.</p>
|
||
<button type="submit" class="btn btn-primary">Save correction</button><button type="button" class="btn btn-outline-secondary" data-context-edit-cancel>Cancel</button>
|
||
</form>
|