blob: bd01a9a7ebc139e697c6ffb935413190698e482e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{% 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>
<p>
<b>UPDATE:</b> The title and rotation will be guessed from EXIF data...
</p>
{% else %}
<p>Oops! No gallery here!</p>
{% endif %}
{% endblock %}
|