19 lines
2.0 KiB
Plaintext

@model string
@{ Layout = null; }
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Connect Word Companion</title><link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css"/></head><body>
<div class="container py-4" style="max-width:45rem">
<h1>Connect Word Companion</h1>
<p>Account: <strong>@(User.Identity?.Name??"Your signed-in PlotDirector account")</strong>. To connect a different account, sign in to that account before approving.</p>
<p>Approve only if you just chose Connect in your own Word Companion. This grants access to your available books and allows chapter text you explicitly submit to use PlotDirector's configured AI provider.</p>
<p>Request code: <strong>@Model.Substring(Math.Max(0, Model.Length - 6))</strong>. Compare this with the Companion request before approving.</p>
<p>@(ViewData["PersistentInstallation"] is true?"No manuscript is uploaded by signing in. This installation stays approved across restarts, using short-lived access that renews automatically. Approval expires after 90 days without renewal, or when you sign out, change your account security, or revoke it in PlotDirector.":"No manuscript is uploaded by signing in. This older Companion uses a four-hour connection; update it for automatic reconnection.")</p>
<form method="post" action="/native-companion/authorize">
@Html.AntiForgeryToken()
<input type="hidden" name="code" value="@Model" />
<label class="form-check mb-3"><input class="form-check-input" type="checkbox" name="retainImport" value="true" /><span class="form-check-label">For this approved installation, retain encrypted copies of chapters I explicitly submit, so I can review and import them. Captures expire after 30 days; confirmed imports become my saved book data. This does not upload anything automatically.</span></label>
<button type="submit" class="btn btn-primary">Approve this Word Companion connection</button>
</form>
</div>
</body></html>