summaryrefslogtreecommitdiff
path: root/design/templates/admin
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/admin')
-rw-r--r--design/templates/admin/buttons.html4
-rw-r--r--design/templates/admin/upload_zip.html57
2 files changed, 60 insertions, 1 deletions
diff --git a/design/templates/admin/buttons.html b/design/templates/admin/buttons.html
index 9e36e03..500aa0b 100644
--- a/design/templates/admin/buttons.html
+++ b/design/templates/admin/buttons.html
@@ -32,7 +32,7 @@
<div class="module" id="recent-actions-module">
<div class="grp-module" id="grp-recent-actions-module">
- <h2>Publish Site</h2>, BuildBooks
+ <h2>Publish Site</h2>
{% if message %}
<ul class="messagelist">
<li style="font-weight: bold; color: red;">{{message}}...</li>
@@ -50,7 +50,9 @@
<li class="item"><a href="/admin/build/build?id=buildbooks">Build Books</a></li>
<li class="item"><a href="/admin/build/build?id=pages">Build All Pages</a></li>
<li class="item"><a href="/admin/build/build?id=sitemap">Build Sitemap</a></li>
+ <li class="item"><a href="/admin/build/build?id=all">Build Entire Site</a></li>
<li class="item"><a href="/admin/build/build?id=scrapeflickr">Scrape Flickr</a></li>
+ <li class="item"><a href="/admin/photos/gallery/upload_zip">Upload Photos</a></li>
</ul>
</div>
</div>
diff --git a/design/templates/admin/upload_zip.html b/design/templates/admin/upload_zip.html
new file mode 100644
index 0000000..2a5345a
--- /dev/null
+++ b/design/templates/admin/upload_zip.html
@@ -0,0 +1,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>
+ &rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a>
+ &rsaquo; {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">
+ {{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
+ &rsaquo; {% 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 %}