drafted the slippage page
This commit is contained in:
@@ -88,14 +88,11 @@
|
||||
<div class="mt-6 p-4 bg-blue-50 border-l-4 border-blue-400">
|
||||
<h3 class="text-sm font-bold text-blue-900 mb-2">Review Your Post:</h3>
|
||||
<ul class="text-xs text-blue-800 space-y-1 list-disc list-inside">
|
||||
<li>Check the preview above to see how your post will appear to others</li>
|
||||
<li>Spelling errors are highlighted in red - you can edit your message to fix them</li>
|
||||
<li>Click "Preview Again" to see updated changes before posting</li>
|
||||
<li>When satisfied, click "Add Topic" to submit your message</li>
|
||||
<li>Check the preview above to see how your post will appear to others.</li>
|
||||
<li>Spelling errors are highlighted in red - you can edit your message to fix them.</li>
|
||||
<li>Click "Preview Again" to see updated changes before posting.</li>
|
||||
<li>When satisfied, click a "Post" button to submit your message.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
{*
|
||||
* Amsterdam Web Communities System
|
||||
* Copyright (c) 2025-2026 Erbosoft Metaverse Design Solutions, All Rights Reserved
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*}
|
||||
<div class="p-4">
|
||||
<div class="mb-6">
|
||||
<h1 class="text-blue-800 text-4xl font-bold inline">Slippage or Double-Click Detected</h1>
|
||||
<hr class="border-2 border-gray-400 w-4/5 mt-2 mb-6">
|
||||
</div>
|
||||
|
||||
<div class="max-w-6xl">
|
||||
<div class="mb-8">
|
||||
The following posts slipped in while you were typing.
|
||||
</div>
|
||||
|
||||
<!-- Messages -->
|
||||
<div class="space-y-6 mb-8">
|
||||
{{ m := map("foo", "bar") }}
|
||||
{{ range i, p := posts }}
|
||||
{{ m = map("post_cur", p, "post_userName", post_getUserName(p, .), "post_text", post_getText(p, .),
|
||||
"post_overrideLine", post_getOverrideLine(p, .), "post_overrideLink", post_getOverrideLink(p, post_topicPermalink)) }}
|
||||
{{ .SubRender2("singlepost.jet", m) | raw }}
|
||||
{{ if pin == p.Num }}<hr/>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<!-- Repost Form -->
|
||||
<hr class="border-gray-400 mb-6">
|
||||
<h2 class="text-2xl font-bold text-black mb-4">Post Message in "{{ topicName }}":</h2>
|
||||
|
||||
<!-- Posting Form -->
|
||||
<div class="max-w-3xl">
|
||||
<form method="POST" action="{{ urlStem }}">
|
||||
<input type="hidden" name="xp" value="{{ maxPost }}"/>
|
||||
<div class="bg-gray-50 p-6 rounded-lg space-y-4">
|
||||
<!-- Your Name/Header and Attach File -->
|
||||
<div>
|
||||
<label for="pseud" class="block text-black text-sm font-medium mb-2">Your name/header:</label>
|
||||
<div class="flex items-center gap-4">
|
||||
<input type="text" id="pseud" name="pseud" size="37" maxlength="255" value="{{ pseud | raw }}"
|
||||
class="flex-1 px-3 py-2 border border-gray-300 rounded font-mono focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="checkbox" id="attach" name="attach" value="Y"
|
||||
{{ if isset(attachFile) }}checked{{ end }}
|
||||
class="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
|
||||
<label for="attach" class="text-black text-sm">Attach a file</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Message -->
|
||||
<div>
|
||||
<div class="flex justify-between items-center mb-2">
|
||||
<label for="pb" class="text-black text-sm font-medium">Message:</label>
|
||||
<a href="/TODO/html-reference" target="_blank"
|
||||
class="text-blue-700 hover:text-blue-900 text-sm">HTML Guide</a>
|
||||
</div>
|
||||
<textarea id="pb" name="pb" wrap="soft" rows="7" cols="51"
|
||||
placeholder="Enter your message here. HTML tags are supported..."
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">{{ pb | raw }}</textarea>
|
||||
</div>
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<div class="flex justify-center gap-4 pt-4">
|
||||
<button type="submit" name="preview" class="bg-gray-600 hover:bg-gray-700 text-white px-6 py-2 rounded font-medium transition-colors">Preview</button>
|
||||
<button type="submit" name="post" class="bg-green-600 hover:bg-green-700 text-white px-6 py-2 rounded font-medium transition-colors">Post & Reload</button>
|
||||
<button type="submit" name="postnext" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded font-medium transition-colors">Post & Go Next</button>
|
||||
<button type="submit" name="posttopics" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded font-medium transition-colors">Post & Go Topics</button>
|
||||
<button type="submit" name="cancel" class="bg-red-600 hover:bg-red-700 text-white px-6 py-2 rounded font-medium transition-colors">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- Posting Guidelines -->
|
||||
<div class="mt-6 p-4 bg-blue-50 border-l-4 border-blue-400">
|
||||
<h3 class="text-sm font-bold text-blue-900 mb-2">Review Your Post:</h3>
|
||||
<ul class="text-xs text-blue-800 space-y-1 list-disc list-inside">
|
||||
<li>The posts shown above "slipped in" while you were posting your message.</li>
|
||||
<li>You may choose to edit your message and repost, just post it as is, or cancel posting altogether.</li>
|
||||
<li>Click "Preview" to see updated changes before posting.</li>
|
||||
<li>When satisfied, click a "Post" button to submit your message.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user