Opened 4 weeks ago

Last modified 12 days ago

#29426 assigned Cleanup/optimization

UUID fields display poorly in the admin

Reported by: Aymeric Augustin Owned by: mackong
Component: Forms Version: 2.0
Severity: Normal Keywords: uuid
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description

As shown in the attached screenshot:

  • The text input for a UUID field in the admin is too narrow to display the entire UUID. Adding class="vTextField" solves the issue — even though that doesn't sound like the greatest semantic markup.
  • I would find it more readable if the admin showed UUIDs with dashes, like str(uuid) in Python. (Depending on what's need to make that change, it may raise backwards compatibility questions.)

The second screenshot shows what I'd like the field to look like.

Attachments (2)

Capture d’écran 2018-05-21 à 21.16.07.png (15.0 KB) - added by Aymeric Augustin 4 weeks ago.
Capture d’écran 2018-05-21 à 21.19.07.png (17.1 KB) - added by Aymeric Augustin 4 weeks ago.

Download all attachments as: .zip

Change History (8)

Changed 4 weeks ago by Aymeric Augustin

Changed 4 weeks ago by Aymeric Augustin

comment:1 Changed 4 weeks ago by Claude Paroz

Component: contrib.adminForms
Triage Stage: UnreviewedAccepted

comment:2 Changed 4 weeks ago by mackong

Has patch: set

comment:3 Changed 4 weeks ago by Anurag Lal

We can add class="vTextField" to solve this issue.

Last edited 4 weeks ago by Anurag Lal (previous) (diff)

comment:4 Changed 4 weeks ago by Bartosz Grabski

comment:5 Changed 3 weeks ago by mackong

Owner: changed from nobody to mackong
Status: newassigned

comment:6 Changed 12 days ago by Carlton Gibson

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top