From 0be7b37a5490f982fe835143d9684aa06bfe7be3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 25 Aug 2013 19:50:36 +0200 Subject: Improve window images layout by usinf prettyPhoto (refs #1314) --- archaeological_finds/models.py | 4 ---- archaeological_finds/templates/ishtar/sheet_find.html | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 8fb18385b..e047e21cf 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -145,10 +145,6 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms): order = models.IntegerField(_(u"Order")) label = models.CharField(_(u"ID"), max_length=60) description = models.TextField(_(u"Description"), blank=True, null=True) - """ - image = models.ImageField(upload_to="finds/", blank=True, null=True) - thumbnail = models.ImageField(upload_to='finds/thumbs/', blank=True, - null=True)""" material_type = models.ForeignKey(MaterialType, verbose_name = _(u"Material type")) volume = models.FloatField(_(u"Volume (l)"), blank=True, null=True) diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 208447905..9111eb409 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -1,13 +1,13 @@ {% extends "ishtar/sheet.html" %} {% load i18n %} + {% block content %}
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}

{% trans "Find"%}

{% if item.image %} -plouf -{{image.label}} + {% endif%}

-- cgit v1.2.3