An open source, non-profit web search engine
Put the form in a better place
Daoud Clarke4fe2dc9e0587
diff --git a/devdata/index-v2.tinysearch b/devdata/index-v2.tinysearchindex fb660fc..cacdc4a 100644Binary files a/devdata/index-v2.tinysearch and b/devdata/index-v2.tinysearch differdiff --git a/mwmbl/templates/home.html b/mwmbl/templates/home.htmlindex ffb8a8a..6cfda90 100644--- a/mwmbl/templates/home.html+++ b/mwmbl/templates/home.html@@ -1,20 +1,20 @@{% load humanize %}{% include "title.html" %}-<div is="mwmbl-add-result" style="display: none">- <form class="modal-content"- hx-post="/app/add/"- hx-target=".main"- hx-include=".result"- hx-vals='{"query": "{{ query }}"{% if curation %}, "curation_id": {{ curation.id }}{% endif %}}'- hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>- <span class="close">×</span>- <label>- Enter a URL: <input class="add-result" name="new_url" placeholder="https://something.org">- </label>- <input type="submit" class="button" value="Save"/>- </form>-</div><div class="main">+ <div is="mwmbl-add-result" style="display: none">+ <form class="modal-content"+ hx-post="/app/add/"+ hx-target=".main"+ hx-include=".result"+ hx-vals='{"query": "{{ query }}"{% if curation %}, "curation_id": {{ curation.id }}{% endif %}}'+ hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>+ <span class="close">×</span>+ <label>+ Enter a URL: <input class="add-result" name="new_url" placeholder="https://something.org">+ </label>+ <input type="submit" class="button" value="Save"/>+ </form>+ </div>{% if query %}<button class="button curate-add" is="mwmbl-add-button">+ Add new</button>{% if curation %}