]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/massimport.html
Add a massimport page
[djsite.git] / quotes / templates / quotes / massimport.html
diff --git a/quotes/templates/quotes/massimport.html b/quotes/templates/quotes/massimport.html
new file mode 100644 (file)
index 0000000..c24a11b
--- /dev/null
@@ -0,0 +1,42 @@
+{% extends 'quotes/base.html' %}
+
+{% block title %}Importing several quotes at once{% endblock %}
+
+{% block body %}
+
+<p>Expected format in the text area:</p>
+
+<pre>
+  Text of the quote
+  ---
+  Author of the quote
+  ---
+  Title of the work (book or play title, name of the speech, historical event, etc.)
+  ---
+  tag 1, tag 2, separated by commas
+  ===
+  A second quote
+  ---
+  Author of the second quote
+  ---
+  Title of the second work
+  ---
+  some, tags
+  ===
+  A third quote
+  ---
+  Author of the quote
+  ---
+  Title of the work
+  ---
+  etc, etc
+</pre>
+
+<form action="{% url 'quotes:massimport' %}" method="post">
+  {% csrf_token %}
+  <p>Quotes to import: </p>
+  <textarea name="quotes" cols="100" rows="20"></textarea>
+  <p><input type="submit" /></p>
+</form>
+
+{% endblock %}