Skip to content

3726: Fix the tooltip of the restore contact button - #4530

Open
hdimer wants to merge 1 commit into
digitalfabrik:developfrom
hdimer:bugfix/3726-restore-contact-tooltip
Open

3726: Fix the tooltip of the restore contact button#4530
hdimer wants to merge 1 commit into
digitalfabrik:developfrom
hdimer:bugfix/3726-restore-contact-tooltip

Conversation

@hdimer

@hdimer hdimer commented Aug 22, 2026

Copy link
Copy Markdown

Short description

The restore button on an archived contact's detail/edit form shows the tooltip "Restore page" instead of "Restore contact". The title attribute was copy-pasted from the page sidebar; this changes it to the string the contact list row already uses.

Proposed changes

  • contacts/contact_form.html: title="{% translate "Restore page" %}"title="{% translate "Restore contact" %}". contacts/contact_list_row.html already uses "Restore contact" for the same action, so no new msgid is introduced.
  • Regenerated locale/de/LC_MESSAGES/django.po with ./tools/translate.sh (only the source-file comments of the two existing entries move).
  • Release note for Wrong title attribute for restore contact button #3726.

I left the button's visible label as "Restore this contact". That mirrors the other form sidebars, which all pair title="Restore <entity>" with the label "Restore this " (pages, POIs), so the forms stay consistent.

No test: there are no assertions on template copy or title attributes anywhere in tests/, and the nearest comparable change (b4ff5af, the Push Notification -> News rename) added none either. Happy to add one if you'd rather have it pinned.

Small thing I noticed but did not touch: in German both msgids render as "Kontakt wiederherstellen", so the tooltip and the button label now read identically. Pages avoids that with "Seite wiederherstellen" / "Diese Seite wiederherstellen". That is a wording call on the other msgid, so I left it out of this PR.

Side effects

  • None. "Restore page" is still used by pages/page_form_sidebar/actions_box.html and pages/pages_page_tree_node.html, so the msgid stays in the translation file.

Faithfulness to issue description and design

There are no intended deviations from the issue and design.

How to test

Archive a contact, open it, scroll to the restore button and hover it. The tooltip should read "Restore contact" / "Kontakt wiederherstellen".

Resolved issues

Fixes: #3726


Pull Request Review Guidelines


Used AI assistance on this; I reviewed and tested the change myself.

The restore button on the contact form had title="Restore page", copied
from the page sidebar. Use "Restore contact", the string the contact list
row already uses for the same action.

Fixes: digitalfabrik#3726
@hdimer
hdimer marked this pull request as ready for review August 22, 2026 03:37
@connium connium added the prio: low Not urgent, can be resolved in the distant future. label Aug 26, 2026

@MizukiTemma MizukiTemma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 😸 Thank you for your contribution in our repository 🎉

@hdimer

hdimer commented Aug 27, 2026

Copy link
Copy Markdown
Author

Thanks for the quick review. Glad it was useful, happy to pick up more from the tracker if there's anything open.

@MizukiTemma MizukiTemma self-assigned this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-reviewer prio: low Not urgent, can be resolved in the distant future.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong title attribute for restore contact button

3 participants