diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 21:21:04 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-12 21:23:12 +0200 |
| commit | 18a6ad99164350af62d65efd6a1fd1aa4c419739 (patch) | |
| tree | e69bfd5b3bc0843ec93223dc12d4a376d6b489c0 /ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html | |
| parent | 6d05b2d357c15b9d291922ac67fecebe3208b55f (diff) | |
| download | Ishtar-18a6ad99164350af62d65efd6a1fd1aa4c419739.tar.bz2 Ishtar-18a6ad99164350af62d65efd6a1fd1aa4c419739.zip | |
Person and organization deletion (refs #1675)
* add associated actions, wizards, forms
* prevent deletion of associted items (operations, files, etc.)
* give list of associated items before deletion and give access to these
items
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html')
| -rw-r--r-- | ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html b/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html new file mode 100644 index 000000000..6de2fbe8c --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/wizard_organization_deletion.html @@ -0,0 +1,37 @@ +{% extends "ishtar/wizard/confirm_wizard.html" %} +{% load i18n %} +{% block "extra_informations" %} + +{% if current_object.members.count %} +<h3>{% trans "Associated persons" %}</h3> +<ul class='list'> +{% for person in current_object.members.all %} + <li>{{person}} <a class='display_details_inline' href="#" onclick='load_window("{%url show-person person.pk ''%}")'>{% trans "show"%}</a></li>{% endfor %} +</ul> +{% endif %} + +{% if current_object.files.count %} +<h3>{% trans "Associated archaeological files" %}</h3> +<ul class='list'> +{% for file in current_object.files.all %} + <li>{{file}} <a class='display_details_inline' href="#" onclick='load_window("{%url show-file file.pk ''%}")'>{% trans "show"%}</a></li>{% endfor %} +</ul> +{% endif %} + +{% if current_object.operator.count %} +<h3>{% trans "Operator of archaeological operations" %}</h3> +<ul class='list'> +{% for operation in current_object.operator.all %} + <li>{{operation}} <a class='display_details_inline' href="#" onclick='load_window("{%url show-operation operation.pk ''%}")'>{% trans "show"%}</a></li>{% endfor %} +</ul> +{% endif %} + +{% if current_object.adminact_operator.count %} +<h3>{% trans "Adminact: operator of archaeological operations" %}</h3> +<ul class='list'> +{% for adminact in current_object.adminact_operator.all %} + <li>{{adminact}} <a class='display_details_inline' href="#" onclick='load_window("{%url show-administrativeact adminact.pk ''%}")'>{% trans "show"%}</a></li>{% endfor %} +</ul> +{% endif %} + +{% endblock %} |
