blob: 2a5345a98e3a9b413a2864281e45bb038a93a9af (
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
|
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static %}
{# Admin styling code largely taken from http://www.dmertl.com/blog/?p=116 #}
{% block extrastyle %}
{{ block.super }}
<script type="text/javascript" src="/admin/jsi18n/"></script>
<script type="text/javascript" src="/static/admin/js/core.js"></script>
<script type="text/javascript" src="/static/admin/js/admin/RelatedObjectLookups.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>
<script type="text/javascript" src="/static/admin/js/actions.js"></script>
<script type="text/javascript" src="/static/admin/js/calendar.js"></script>
<script type="text/javascript" src="/static/admin/js/admin/DateTimeShortcuts.js"></script>
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}"/>
{% endblock %}
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
› <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a>
› {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">
{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
› {% trans 'Upload' %}
</div>
{% endblock %}
{% block content_title %}{% endblock %}
{% block content %}
<h1>{% trans "Upload a zip archive of photos" %}</h1>
{% if form.errors %}
<p class="errornote">
{% if form.errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
</p>
{{ form.non_field_errors }}
{% endif %}
<form action="{% url 'admin:upload_zip' %}" method="post" id="zip_upload_form"
{% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
<div>
{% for fieldset in adminform %}
{% include "admin/includes/fieldset.html" %}
{% endfor %}
</div>
<div class="submit-row">
<input type="submit" value="{% trans 'Upload' %}" class="default"/>
</div>
</form>
{% endblock %}
|