Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#29426 closed Cleanup/optimization (fixed)

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 7 years ago.
Capture d’écran 2018-05-21 à 21.19.07.png (17.1 KB ) - added by Aymeric Augustin 7 years ago.

Download all attachments as: .zip

Change History (11)

by Aymeric Augustin, 7 years ago

by Aymeric Augustin, 7 years ago

comment:1 by Claude Paroz, 7 years ago

Component: contrib.adminForms
Triage Stage: UnreviewedAccepted

comment:3 by Anurag Lal, 7 years ago

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

Version 0, edited 7 years ago by Anurag Lal (next)

comment:4 by Bartosz Grabski, 7 years ago

comment:5 by mackong, 7 years ago

Owner: changed from nobody to mackong
Status: newassigned

comment:6 by Carlton Gibson, 7 years ago

Patch needs improvement: set

comment:7 by Tim Graham <timograham@…>, 6 years ago

In 838d6dc:

Refs #29426 -- Made UUIDField render values with dashes.

comment:8 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In c832885:

Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.

comment:9 by Tim Graham <timograham@…>, 6 years ago

In 3509fb54:

Refs #29426 -- Fixed typo in docs/releases/2.2.txt.

Note: See TracTickets for help on using tickets.
Back to Top