From 5c110f503d9dc6ef956b1f12d2220be9cd528fb1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 4 Jan 2019 16:20:11 +0100 Subject: Sheet: only display window link when permissions are OK --- archaeological_finds/templates/ishtar/sheet_find.html | 6 +++--- .../templates/ishtar/wizard/wizard_findbasket_deletion.html | 4 ++-- .../templates/ishtar/wizard/wizard_treatement_deletion.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'archaeological_finds/templates') diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 1ff5e21f4..3036c2cb6 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -291,7 +291,7 @@ {{ treatment.label|default_if_none:"-" }} {{ treatment.treatment_types_lbl }} {{ treatment.treatment_state|default_if_none:"-" }} - {% for it in treatment.limited_finds %}{{it}} {{it|link_to_window}}{% endfor %} + {% for it in treatment.limited_finds %}{{it}} {{it|link_to_window:request}}{% endfor %} {{ treatment.person|default_if_none:"-" }} {{ treatment.container|default_if_none:"-" }} {{ treatment.start_date|default_if_none:"-" }} @@ -328,7 +328,7 @@ {{ treatment.label|default_if_none:"-" }} {{ treatment.treatment_types_lbl }} {{ treatment.treatment_state|default_if_none:"-" }} - {% for it in items %}{{it}} {{it|link_to_window}}{% endfor %} + {% for it in items %}{{it}} {{it|link_to_window:request}}{% endfor %} {{ treatment.person|default_if_none:"-" }} {{ treatment.container|default_if_none:"-" }} {{ treatment.start_date|default_if_none:"-" }} @@ -366,7 +366,7 @@ {{ treatment.label|default_if_none:"-" }} {{ treatment.treatment_types_lbl }} {{ treatment.treatment_state|default_if_none:"-" }} - {% for it in items %}{{it}} {{ it|link_to_window}}{% endfor %} + {% for it in items %}{{it}} {{ it|link_to_window:request}}{% endfor %} {{ treatment.person|default_if_none:"" }} {{ treatment.container|default_if_none:"-" }} {{ treatment.start_date|default_if_none:"" }} diff --git a/archaeological_finds/templates/ishtar/wizard/wizard_findbasket_deletion.html b/archaeological_finds/templates/ishtar/wizard/wizard_findbasket_deletion.html index ffd5f0398..15c82bd05 100644 --- a/archaeological_finds/templates/ishtar/wizard/wizard_findbasket_deletion.html +++ b/archaeological_finds/templates/ishtar/wizard/wizard_findbasket_deletion.html @@ -7,7 +7,7 @@ {% trans "This basket is attached to treatments requests:" %} {% trans "Are you sure you want to delete this basket?" %} @@ -16,7 +16,7 @@ {% trans "Items inside the basket (these items will not be deleted):" %}
diff --git a/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html b/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html index be46bfd05..f084ad35c 100644 --- a/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html +++ b/archaeological_finds/templates/ishtar/wizard/wizard_treatement_deletion.html @@ -10,7 +10,7 @@ {% trans "The following finds will be deleted and restored to a previous version."%} {% trans "All changes made to the associated finds since this treatment record will be lost!" %} -- cgit v1.2.3