Opened 5 months ago

Closed 2 months ago

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

Download all attachments as: .zip

Change History (11)

Changed 5 months ago by Aymeric Augustin

Changed 5 months ago by Aymeric Augustin

comment:1 Changed 5 months ago by Claude Paroz

Component: contrib.adminForms
Triage Stage: UnreviewedAccepted

comment:2 Changed 5 months ago by mackong

Has patch: set

comment:3 Changed 5 months ago by Anurag Lal

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

Last edited 5 months ago by Anurag Lal (previous) (diff)

comment:4 Changed 5 months ago by Bartosz Grabski

comment:5 Changed 5 months ago by mackong

Owner: changed from nobody to mackong
Status: newassigned

comment:6 Changed 4 months ago by Carlton Gibson

Patch needs improvement: set

comment:7 Changed 2 months ago by Tim Graham <timograham@…>

In 838d6dc:

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

comment:8 Changed 2 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In c832885:

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

comment:9 Changed 7 weeks ago by Tim Graham <timograham@…>

In 3509fb54:

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

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