diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-22 00:32:45 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-27 08:58:30 +0200 |
commit | 059fa7b0ee3e8c54c7291949949aa65b1e23937d (patch) | |
tree | 402303404d8b6c100c1e2f88af270c23c37d5379 | |
parent | 9ee2d65527082da0167b8c4c92faf16f8e25d3b1 (diff) | |
download | Ishtar-059fa7b0ee3e8c54c7291949949aa65b1e23937d.tar.bz2 Ishtar-059fa7b0ee3e8c54c7291949949aa65b1e23937d.zip |
Quick action context record: change position of +find button - fix form display (refs #5184)
-rw-r--r-- | archaeological_context_records/models.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 14ef1f62b..e1099d119 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -955,18 +955,6 @@ class ContextRecord( actions = super(ContextRecord, self).get_extra_actions(request) # is_locked = hasattr(self, "is_locked") and self.is_locked(request.user) - can_edit_cr = self.can_do(request, "change_contextrecord") - if can_edit_cr: - actions += [ - ( - reverse("contextrecord-qa-duplicate", args=[self.pk]), - _("Duplicate"), - "fa fa-clone", - "", - "", - True, - ), - ] can_create_find = self.can_do(request, "add_find") if can_create_find: actions += [ @@ -976,6 +964,18 @@ class ContextRecord( "fa fa-plus", _("find"), "", + False, + ), + ] + can_edit_cr = self.can_do(request, "change_contextrecord") + if can_edit_cr: + actions += [ + ( + reverse("contextrecord-qa-duplicate", args=[self.pk]), + _("Duplicate"), + "fa fa-clone", + "", + "", True, ), ] |