diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-05 16:55:49 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:59:31 +0200 |
commit | c02ea8056cde5f2c86af4787cadd64498c5ebf0b (patch) | |
tree | 79245aa6e7000c98c270b3d7110b7a3794638ea8 /archaeological_files/templates | |
parent | b564db3bb2dbbb71c0d1c1eb7f40ef44fa50e811 (diff) | |
download | Ishtar-c02ea8056cde5f2c86af4787cadd64498c5ebf0b.tar.bz2 Ishtar-c02ea8056cde5f2c86af4787cadd64498c5ebf0b.zip |
Preventive file - admin: copy job and costs from price agreement
Diffstat (limited to 'archaeological_files/templates')
-rw-r--r-- | archaeological_files/templates/admin/copy_price.html | 14 | ||||
-rw-r--r-- | archaeological_files/templates/admin/copy_price_change_list.html | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/archaeological_files/templates/admin/copy_price.html b/archaeological_files/templates/admin/copy_price.html new file mode 100644 index 000000000..f66f9f7a1 --- /dev/null +++ b/archaeological_files/templates/admin/copy_price.html @@ -0,0 +1,14 @@ +{% extends "admin/base_site.html" %} + +{% block content %} + +<form action="." method="post"> +{% csrf_token %} +<table> +{{ file_form }} +</table> +<input type="hidden" name="action" value="{{current_action}}" /> +<input type="submit" name="apply" value="Copy" /> +</form> + +{% endblock %} diff --git a/archaeological_files/templates/admin/copy_price_change_list.html b/archaeological_files/templates/admin/copy_price_change_list.html new file mode 100644 index 000000000..1e3ae8585 --- /dev/null +++ b/archaeological_files/templates/admin/copy_price_change_list.html @@ -0,0 +1,14 @@ +{% extends "admin/gen_change_list.html" %} +{% load i18n admin_urls static admin_list %} + + {% block object-tools-items %} + {{ block.super }} + {% if has_add_permission %} + <li> + <a href="copy-price-agreement/" class="addlink"> + {% trans "Copy price agreement" %} + </a> + </li> + {% endif %} + {% endblock %} + |