summaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates/photos/import_form.html
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/photos/templates/photos/import_form.html')
-rw-r--r--bn_django/photos/templates/photos/import_form.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/bn_django/photos/templates/photos/import_form.html b/bn_django/photos/templates/photos/import_form.html
new file mode 100644
index 0000000..0d4f19e
--- /dev/null
+++ b/bn_django/photos/templates/photos/import_form.html
@@ -0,0 +1,59 @@
+{% extends "photos/base.html" %}
+{# {% load markup %} #}
+{% block title %}Import photos into a gallery
+{% if gallery%} ({{gallery.title}}){% endif %}{% endblock %}
+
+{% block content %}
+{% if gallery %}
+
+<form action="../../import/{{ gallery.id }}/" method="post"
+ enctype="multipart/form-data">
+ <div>
+ {%if form.zipfile.errors %}
+ <span style="color: red;">
+ {{ form.zipfile.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_zipfile">
+ ZIP archive to upload:
+ </label>
+ {{ form.zipfile }}<br/><br/>
+
+ {%if form.photographer.errors %}
+ <span style="color: red;">
+ {{ form.photographer.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_photographer">
+ Name of photographer:
+ </label>
+ {{ form.photographer }}<br/><br/>
+
+ {%if form.date.errors %}
+ <span style="color: red;">
+ {{ form.date.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_date">
+ Date photos were taken:
+ </label>
+ {{ form.date }}<br/><br/>
+ <input type="submit" value="Upload"/>
+ </div>
+</form>
+<p>
+ When you upload a batch of photos in a zipfile, it will give each of
+ them a title based on its filename, and assigns them all the same
+ photographer and date. That's probably not always what you want, so
+ you can change any of these settings on a per-photo basis
+ <em>after</em> you upload the images.
+</p>
+
+{% else %}
+<p>Oops! No gallery here!</p>
+{% endif %}
+
+{% endblock %}