Opened 13 months ago

Closed 10 months ago

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

Download all attachments as: .zip

Change History (11)

Changed 13 months ago by Aymeric Augustin

Changed 13 months ago by Aymeric Augustin

comment:1 Changed 13 months ago by Claude Paroz

Component: contrib.adminForms
Triage Stage: UnreviewedAccepted

comment:2 Changed 13 months ago by mackong

Has patch: set

comment:3 Changed 13 months ago by Anurag Lal

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

Version 0, edited 13 months ago by Anurag Lal (next)

comment:4 Changed 13 months ago by Bartosz Grabski

comment:5 Changed 13 months ago by mackong

Owner: changed from nobody to mackong
Status: newassigned

comment:6 Changed 12 months ago by Carlton Gibson

Patch needs improvement: set

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

In 838d6dc:

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

comment:8 Changed 10 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 10 months 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