diff options
Diffstat (limited to 'archaeological_files')
-rw-r--r-- | archaeological_files/models.py | 8 | ||||
-rw-r--r-- | archaeological_files/templates/ishtar/forms/preventive_detail.html | 7 | ||||
-rw-r--r-- | archaeological_files/views.py | 2 |
3 files changed, 16 insertions, 1 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 0eac73119..c6ab3b3d5 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1086,6 +1086,14 @@ class File( if self.can_do(request, "add_administrativeact"): actions += [ ( + reverse("file-edit-preventive", args=[self.pk]), + _("Edit intervention plan"), + "fa fa-plus", + _("plan"), + "", + False, + ), + ( reverse("file-add-adminact", args=[self.pk]), _("Add associated administrative act"), "fa fa-plus", diff --git a/archaeological_files/templates/ishtar/forms/preventive_detail.html b/archaeological_files/templates/ishtar/forms/preventive_detail.html index 3c58053ba..1d743c615 100644 --- a/archaeological_files/templates/ishtar/forms/preventive_detail.html +++ b/archaeological_files/templates/ishtar/forms/preventive_detail.html @@ -78,3 +78,10 @@ }); {% endblock %} {# </script> #} +{% block extra_validation_button %} +<div class="col-sm"> + <a href="{% url 'display-item' 'file' file.pk %}" class="btn btn-secondary" role="button" aria-pressed="true"> + {% trans "Back to the file" %} + </a> +</div> +{% endblock %} diff --git a/archaeological_files/views.py b/archaeological_files/views.py index 5a7c6b1d9..b9c4395f5 100644 --- a/archaeological_files/views.py +++ b/archaeological_files/views.py @@ -407,7 +407,7 @@ class MixFormFormsetUpdateView(UpdateView): class PreventiveEditView(IshtarMixin, LoginRequiredMixin, MixFormFormsetUpdateView): - page_name = _("Preventive modification") + page_name = _("Intervention plan") form_class = forms.FileFormPreventiveDetail template_name = "ishtar/forms/preventive_detail.html" model = models.File |