Opened 4 years ago

Closed 13 months ago

Last modified 2 months ago

#12701 closed New feature (needsinfo)

"Tooltips" in admin list view

Reported by: mrts Owned by: nobody
Component: contrib.admin Version: master
Severity: Normal Keywords: design_ux
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes


When working with complex models that contain a lot of information, cramming all of it into list_display columns in admin is sometimes infeasible (e.g. the grid becomes too large or cluttered or the information is just a useful minor detail that is not required in the birds-eye view -- last changed timestamps, editor name etc). Perhaps it makes sense to support tooltip-style popups for additional row-specific detailed information.

Either the title tag or pure-CSS popups could be used for this. However, title is (or was) cut off at 70 characters in Gecko-based browsers, so pure-CSS popups should be used.

list_display_tooltips with similar semantics to list_display looks like a sensible way of declaring them.

Will attach a patch eventually.

Attachments (0)

Change History (11)

comment:1 Changed 4 years ago by mrts

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

s/title tag/title attribute/

comment:2 Changed 4 years ago by russellm

  • Keywords design_ux added
  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 3 years ago by mattmcc

  • Severity set to Normal
  • Type set to New feature

comment:4 Changed 3 years ago by julien

  • UI/UX set

comment:5 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:6 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:7 Changed 2 years ago by aaugustin

  • UI/UX set

Revert accidental batch modification.

comment:8 Changed 13 months ago by aaugustin

  • Resolution set to needsinfo
  • Status changed from new to closed

"eventually" hasn't come yet, and I'm a bit skeptical about the concept anyway. We already have more than enough options in the admin and this can be achieved by overriding the template.

comment:9 Changed 2 months ago by anonymous

You have to override the template change_list_results.html:

<div class="text" title="{{ ... }}">

I have no idea what the template tag is for the model help_text though..

comment:10 Changed 2 months ago by anonymous

I ended up doing it through jquery:

$("th:contains(Full name)").attr('title', "Click here to edit the person")

comment:11 Changed 2 months ago by EvilDMP

"Click here"!?

"Edit the person" doesn't make assumptions about the user's equipment, and doesn't have the potential for creating confusion about where "here" is.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.