Skip to content

armgit / mwmbl

Public Imported from GitHub
0

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.tinysearch
index fb660fc..cacdc4a 100644
Binary files a/devdata/index-v2.tinysearch and b/devdata/index-v2.tinysearch differ
diff --git a/mwmbl/templates/home.html b/mwmbl/templates/home.html
index 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">&times;</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">&times;</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 %}