Intervention template adjustments

* renames intervention variable to obj to match other template style
* renames open routes to detail routes
This commit is contained in:
2021-10-13 09:26:46 +02:00
parent 83378f27c1
commit af0fe655b3
24 changed files with 87 additions and 87 deletions

View File

@@ -99,7 +99,7 @@ class EditEmaForm(NewEmaForm):
self.form_title = _("Edit EMA")
self.action_url = reverse("ema:edit", args=(self.instance.id,))
self.cancel_redirect = reverse("ema:open", args=(self.instance.id,))
self.cancel_redirect = reverse("ema:detail", args=(self.instance.id,))
self.fields["identifier"].widget.attrs["url"] = reverse_lazy("ema:new-id")
self.fields["title"].widget.attrs["placeholder"] = _("Compensation XY; Location ABC")